pub struct FrameBufferAllocator { /* private fields */ }
Implementations§
source§impl FrameBufferAllocator
impl FrameBufferAllocator
pub fn new(cam: &Camera<'_>) -> Self
sourcepub fn alloc(&mut self, stream: &Stream) -> Result<Vec<FrameBuffer>>
pub fn alloc(&mut self, stream: &Stream) -> Result<Vec<FrameBuffer>>
Allocate N buffers for a given stream, where N is equal to StreamConfigurationRef::get_buffer_count().
Auto Trait Implementations§
impl Freeze for FrameBufferAllocator
impl RefUnwindSafe for FrameBufferAllocator
impl Send for FrameBufferAllocator
impl Sync for FrameBufferAllocator
impl Unpin for FrameBufferAllocator
impl UnwindSafe for FrameBufferAllocator
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