pub struct BufferCollectionAllocator { /* private fields */ }
Implementations§
Source§impl BufferCollectionAllocator
impl BufferCollectionAllocator
pub fn new( width: u32, height: u32, pixel_format: PixelFormat, usage: FrameUsage, buffer_count: usize, ) -> Result<BufferCollectionAllocator, Error>
pub fn set_name(&mut self, priority: u32, name: &str) -> Result<(), Error>
pub fn set_pixel_type(&mut self, pixel_format: PixelFormat)
pub async fn allocate_buffers( &mut self, set_constraints: bool, ) -> Result<BufferCollectionInfo, Error>
pub async fn duplicate_token( &mut self, ) -> Result<ClientEnd<BufferCollectionTokenMarker>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferCollectionAllocator
impl !RefUnwindSafe for BufferCollectionAllocator
impl Send for BufferCollectionAllocator
impl Sync for BufferCollectionAllocator
impl Unpin for BufferCollectionAllocator
impl !UnwindSafe for BufferCollectionAllocator
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