pub struct BufferId {
pub buffer_collection_id: BufferCollectionId,
pub buffer_index: u32,
}
Expand description
Strongly typed wrapper around a sysmem buffer identifier, including a
collection ID and the index of the buffer.
Corresponds to [fuchsia.hardware.display/BufferId
].
Fields§
§buffer_collection_id: BufferCollectionId
Identifies the buffer collection.
buffer_index: u32
Index of the buffer within the buffer collection.
Implementations§
Trait Implementations§
Source§impl From<BufferId> for BufferId
impl From<BufferId> for BufferId
Source§fn from(fidl_buffer_id: FidlBufferId) -> Self
fn from(fidl_buffer_id: FidlBufferId) -> Self
Converts to this type from the input type.
impl Copy for BufferId
impl Eq for BufferId
impl StructuralPartialEq for BufferId
Auto Trait Implementations§
impl Freeze for BufferId
impl RefUnwindSafe for BufferId
impl Send for BufferId
impl Sync for BufferId
impl Unpin for BufferId
impl UnwindSafe for BufferId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)