pub struct DmabufAllocator<A>(pub A)
where
A: Allocator,
<A as Allocator>::Buffer: AsDmabuf + 'static,
<A as Allocator>::Error: 'static;Expand description
Wrapper for Allocators, whos buffer types implement AsDmabuf.
Implements Allocator<Buffer=Dmabuf, Error=AnyError>
Tuple Fields§
§0: ATrait Implementations§
Source§impl<A> Allocator for DmabufAllocator<A>
impl<A> Allocator for DmabufAllocator<A>
Auto Trait Implementations§
impl<A> Freeze for DmabufAllocator<A>where
A: Freeze,
impl<A> RefUnwindSafe for DmabufAllocator<A>where
A: RefUnwindSafe,
impl<A> Send for DmabufAllocator<A>where
A: Send,
impl<A> Sync for DmabufAllocator<A>where
A: Sync,
impl<A> Unpin for DmabufAllocator<A>where
A: Unpin,
impl<A> UnwindSafe for DmabufAllocator<A>where
A: UnwindSafe,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.