Struct BufferCollectionConstraintsAuxBuffers
pub struct BufferCollectionConstraintsAuxBuffers {
pub need_clear_aux_buffers_for_secure: bool,
pub allow_clear_aux_buffers_for_secure: bool,
}
Fields§
§need_clear_aux_buffers_for_secure: bool
If true, a secure heap may only be selected if all participants with BufferMemoryConstraints specify allow_clear_aux_buffers_for_secure. If “need” is true, “allow” must also be true.
If false, the participant can still work, potentially even with secure memory (depending on supported heaps), without clear aux buffers.
allow_clear_aux_buffers_for_secure: bool
If true, the participant will use clear aux buffers, if they are allocated, as appropriate to the participant’s role. If the participant is a producer, then the participant producer will populate the clear aux buffers with the clear (not-encrypted, not-DRM-protected) bytes, and fill protected bytes with data that does not emulate start codes, such as 0xFF.
If BufferCollectionConstraintsAuxBuffers is never sent by a participant, then “allow” is true iff the participant specifies usage which is read only.
If unspecified by a participant with write usage, or false, the buffer collection won’t be able to allocate if any participant specifies need_clear_aux_buffers_for_secure true.
Trait Implementations§
§impl Clone for BufferCollectionConstraintsAuxBuffers
impl Clone for BufferCollectionConstraintsAuxBuffers
§fn clone(&self) -> BufferCollectionConstraintsAuxBuffers
fn clone(&self) -> BufferCollectionConstraintsAuxBuffers
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl<D> Decode<BufferCollectionConstraintsAuxBuffers, D> for BufferCollectionConstraintsAuxBufferswhere
D: ResourceDialect,
impl<D> Decode<BufferCollectionConstraintsAuxBuffers, D> for BufferCollectionConstraintsAuxBufferswhere
D: ResourceDialect,
§fn new_empty() -> BufferCollectionConstraintsAuxBuffers
fn new_empty() -> BufferCollectionConstraintsAuxBuffers
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<BufferCollectionConstraintsAuxBuffers, D> for &BufferCollectionConstraintsAuxBufferswhere
D: ResourceDialect,
impl<D> Encode<BufferCollectionConstraintsAuxBuffers, D> for &BufferCollectionConstraintsAuxBufferswhere
D: ResourceDialect,
§impl Ord for BufferCollectionConstraintsAuxBuffers
impl Ord for BufferCollectionConstraintsAuxBuffers
§fn cmp(&self, other: &BufferCollectionConstraintsAuxBuffers) -> Ordering
fn cmp(&self, other: &BufferCollectionConstraintsAuxBuffers) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for BufferCollectionConstraintsAuxBuffers
impl PartialEq for BufferCollectionConstraintsAuxBuffers
§fn eq(&self, other: &BufferCollectionConstraintsAuxBuffers) -> bool
fn eq(&self, other: &BufferCollectionConstraintsAuxBuffers) -> bool
self
and other
values to be equal, and is used by ==
.§impl PartialOrd for BufferCollectionConstraintsAuxBuffers
impl PartialOrd for BufferCollectionConstraintsAuxBuffers
§impl TypeMarker for BufferCollectionConstraintsAuxBuffers
impl TypeMarker for BufferCollectionConstraintsAuxBuffers
§type Owned = BufferCollectionConstraintsAuxBuffers
type Owned = BufferCollectionConstraintsAuxBuffers
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for BufferCollectionConstraintsAuxBuffers
impl ValueTypeMarker for BufferCollectionConstraintsAuxBuffers
§type Borrowed<'a> = &'a BufferCollectionConstraintsAuxBuffers
type Borrowed<'a> = &'a BufferCollectionConstraintsAuxBuffers
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<BufferCollectionConstraintsAuxBuffers as TypeMarker>::Owned,
) -> <BufferCollectionConstraintsAuxBuffers as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<BufferCollectionConstraintsAuxBuffers as TypeMarker>::Owned, ) -> <BufferCollectionConstraintsAuxBuffers as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.