pub struct BufferCollectionInfo {
pub settings: Option<SingleBufferSettings>,
pub buffers: Option<Vec<VmoBuffer>>,
pub buffer_collection_id: Option<u64>,
}Expand description
Information about a buffer collection and its buffers.
When adding fields to this table, see also fuchsia.sysmem2/Allocator.GetVmoInfo, redacted_buffer_collection_info, and RedactBufferCollectionInfo. Consider whether a client with only ZX_RIGHT_TRANSFER right on a sysmem vmo handle, calling GetVmoInfo, should be given the information in the new field, or whether it should be un-set during redaction. GetVmoInfo is analogous to zx_object_get_info with topic ZX_INFO_VMO, which doesn’t require the VMO handle to have any rights - just needs to be a handle to a VMO. Fields that are necessary to correctly use a single sysmem VMO in isolation are generally ok (but still think about it field by field). Fields that are not necessary to correctly use a single sysmem VMO in isolation should probably be redacted for GetVmoInfo redacted_buffer_collection_info.
Fields§
§settings: Option<SingleBufferSettings>§buffers: Option<Vec<VmoBuffer>>§buffer_collection_id: Option<u64>Trait Implementations§
Source§impl Debug for BufferCollectionInfo
impl Debug for BufferCollectionInfo
Source§impl Default for BufferCollectionInfo
impl Default for BufferCollectionInfo
Source§fn default() -> BufferCollectionInfo
fn default() -> BufferCollectionInfo
Source§impl<___E> Encode<BufferCollectionInfo<'static>, ___E> for BufferCollectionInfowhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<BufferCollectionInfo<'static>, ___E> for BufferCollectionInfowhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<BufferCollectionInfo<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<BufferCollectionInfo<'static>>, _: (), ) -> Result<(), EncodeError>
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<BufferCollectionInfo<'de>> for BufferCollectionInfo
impl<'de> FromWire<BufferCollectionInfo<'de>> for BufferCollectionInfo
Source§fn from_wire(wire_: BufferCollectionInfo<'de>) -> Self
fn from_wire(wire_: BufferCollectionInfo<'de>) -> Self
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for BufferCollectionInfo
impl PartialEq for BufferCollectionInfo
Source§fn eq(&self, other: &BufferCollectionInfo) -> bool
fn eq(&self, other: &BufferCollectionInfo) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferCollectionInfo
Auto Trait Implementations§
impl Freeze for BufferCollectionInfo
impl RefUnwindSafe for BufferCollectionInfo
impl Send for BufferCollectionInfo
impl Sync for BufferCollectionInfo
impl Unpin for BufferCollectionInfo
impl UnsafeUnpin for BufferCollectionInfo
impl UnwindSafe for BufferCollectionInfo
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
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]