Trait coaster::backend::IBackend

source ·
pub trait IBackend
where <Self::F as IFramework>::D: IDevice,
{ 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§

source

type F: IFramework + Clone

Represents the Framework of a Backend.

Required Methods§

source

fn device(&self) -> &<<Self as IBackend>::F as IFramework>::D

Returns the backend device.

Provided Methods§

source

fn default() -> Result<Backend<Self::F>, Error>
where Self: Sized,

Try to create a default backend.

source

fn synchronize(&self) -> Result<(), Error>

Synchronize backend.

Implementors§