Struct devotee_backend_softbuffer::SoftBackend
source · pub struct SoftBackend { /* private fields */ }
Expand description
Backend based on the Softbuffer project.
Implementations§
source§impl SoftBackend
impl SoftBackend
source§impl SoftBackend
impl SoftBackend
sourcepub fn run<App, Mid, Rend, Data, Conv>(
self,
app: App,
middleware: Mid,
update_delay: Duration
) -> Result<(), Error>where
App: for<'a> Application<'a, <Mid as Middleware<'a, SoftControl>>::Init, <Mid as Middleware<'a, SoftControl>>::Context, Rend, Conv>,
Mid: for<'a> Middleware<'a, SoftControl, Event = WindowEvent, EventContext = &'a Window, Surface = Buffer<'a, Rc<Window>, Rc<Window>>, RenderTarget = SoftRenderTarget<'a, Rend>>,
Rend: RenderSurface<Data = Data>,
Conv: Converter<Data = Data>,
pub fn run<App, Mid, Rend, Data, Conv>(
self,
app: App,
middleware: Mid,
update_delay: Duration
) -> Result<(), Error>where
App: for<'a> Application<'a, <Mid as Middleware<'a, SoftControl>>::Init, <Mid as Middleware<'a, SoftControl>>::Context, Rend, Conv>,
Mid: for<'a> Middleware<'a, SoftControl, Event = WindowEvent, EventContext = &'a Window, Surface = Buffer<'a, Rc<Window>, Rc<Window>>, RenderTarget = SoftRenderTarget<'a, Rend>>,
Rend: RenderSurface<Data = Data>,
Conv: Converter<Data = Data>,
Run this backend to completion.
Auto Trait Implementations§
impl !Freeze for SoftBackend
impl !RefUnwindSafe for SoftBackend
impl !Send for SoftBackend
impl !Sync for SoftBackend
impl Unpin for SoftBackend
impl !UnwindSafe for SoftBackend
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.