Trait collenchyma::backend::IBackend [] [src]

pub trait IBackend {
    type F: IFramework + Clone;
    fn device(&self) -> &DeviceType;

    fn default() -> Result<Backend<Self::F>, Error> where Self: Sized { ... }
    fn synchronize(&self) -> Result<(), Error> { ... }
}

Describes a Backend.

Serves as a marker trait and helps for extern implementation.

Associated Types

type F: IFramework + Clone

Represents the Framework of a Backend.

Required Methods

fn device(&self) -> &DeviceType

Returns the backend device.

Provided Methods

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

Try to create a default backend.

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

Synchronize backend.

Implementors