pub trait IBackend{
type F: IFramework + Clone;
// Required method
fn device(&self) -> &<<Self as IBackend>::F as IFramework>::D;
// Provided methods
fn default() -> Result<Backend<Self::F>, Error>
where Self: Sized { ... }
fn synchronize(&self) -> Result<(), Error> { ... }
}
Expand description
Describes a Backend.
Serves as a marker trait and helps for extern implementation.
Required Associated Types§
sourcetype F: IFramework + Clone
type F: IFramework + Clone
Represents the Framework of a Backend.
Required Methods§
Provided Methods§
sourcefn default() -> Result<Backend<Self::F>, Error>where
Self: Sized,
fn default() -> Result<Backend<Self::F>, Error>where
Self: Sized,
Try to create a default backend.
sourcefn synchronize(&self) -> Result<(), Error>
fn synchronize(&self) -> Result<(), Error>
Synchronize backend.