pub struct BufferCollectionInfo {
pub buffer_count: u32,
pub format: BufferFormat,
pub vmos: [Option<Vmo>; 64],
pub vmo_size: u64,
}
Expand description
Deprecated. Use [‘fuchsia.sysmem2.BufferCollectionInfo’].
This type is deprecated for new code but still used by some camera code.
Fields§
§buffer_count: u32
The number of buffers in the collection.
format: BufferFormat
Describes how the contents of buffers are represented. All buffers within the collection have the same format.
vmos: [Option<Vmo>; 64]
VMO handles for each buffer in the collection. The VMOs are only present when the buffers are backed by VMOs.
If present, all the VMOs after buffer_count
are invalid handles.
All buffer VMO handles have identical size and access rights.
The VMO access rights are determined based on the usages which the
client specified when allocating the buffer collection. For example,
a client which expressed a read-only usage will receive VMOs without
write rights.
vmo_size: u64
The size of each VMO provided. This property is only present when the buffers are backed by VMOs.
Trait Implementations§
Source§impl Debug for BufferCollectionInfo
impl Debug for BufferCollectionInfo
Source§impl Decode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for BufferCollectionInfo
impl Decode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for BufferCollectionInfo
Source§impl Encode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for &mut BufferCollectionInfo
impl Encode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for &mut BufferCollectionInfo
Source§impl<T0: Encode<u32, DefaultFuchsiaResourceDialect>, T1: Encode<BufferFormat, DefaultFuchsiaResourceDialect>, T2: Encode<Array<Optional<HandleType<Vmo, { _ }, 2147483648>>, 64>, DefaultFuchsiaResourceDialect>, T3: Encode<u64, DefaultFuchsiaResourceDialect>> Encode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3)
impl<T0: Encode<u32, DefaultFuchsiaResourceDialect>, T1: Encode<BufferFormat, DefaultFuchsiaResourceDialect>, T2: Encode<Array<Optional<HandleType<Vmo, { _ }, 2147483648>>, 64>, DefaultFuchsiaResourceDialect>, T3: Encode<u64, DefaultFuchsiaResourceDialect>> Encode<BufferCollectionInfo, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3)
Source§impl Hash for BufferCollectionInfo
impl Hash for BufferCollectionInfo
Source§impl Ord for BufferCollectionInfo
impl Ord for BufferCollectionInfo
Source§fn cmp(&self, other: &BufferCollectionInfo) -> Ordering
fn cmp(&self, other: &BufferCollectionInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BufferCollectionInfo
impl PartialEq for BufferCollectionInfo
Source§impl PartialOrd for BufferCollectionInfo
impl PartialOrd for BufferCollectionInfo
Source§impl ResourceTypeMarker for BufferCollectionInfo
impl ResourceTypeMarker for BufferCollectionInfo
Source§type Borrowed<'a> = &'a mut BufferCollectionInfo
type Borrowed<'a> = &'a mut BufferCollectionInfo
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for BufferCollectionInfo
impl TypeMarker for BufferCollectionInfo
Source§type Owned = BufferCollectionInfo
type Owned = BufferCollectionInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.