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 UnsafeUnpin 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