pub struct PacketStream {
pub supported_buffer_types: Option<BufferType>,
pub needs_cache_flush_or_invalidate: Option<bool>,
/* private fields */
}Expand description
Configuration for a fuchsia.hardware.audio/PacketStreamControl.
Fields§
§supported_buffer_types: Option<BufferType>The buffer methods supported by this driver.
Required.
needs_cache_flush_or_invalidate: Option<bool>When set to true, indicates that the packet-stream runs in a different cache coherency domain. Clients must ensure data writes are flushed to main memory (during output) or invalidated before reading (during input).
Optional.
Trait Implementations§
Source§impl Clone for PacketStream
impl Clone for PacketStream
Source§fn clone(&self) -> PacketStream
fn clone(&self) -> PacketStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketStream
impl Debug for PacketStream
Source§impl<D> Decode<PacketStream, D> for PacketStreamwhere
D: ResourceDialect,
impl<D> Decode<PacketStream, D> for PacketStreamwhere
D: ResourceDialect,
Source§fn new_empty() -> PacketStream
fn new_empty() -> PacketStream
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for PacketStream
impl Default for PacketStream
Source§fn default() -> PacketStream
fn default() -> PacketStream
Returns the “default value” for a type. Read more
Source§impl<D> Encode<PacketStream, D> for &PacketStreamwhere
D: ResourceDialect,
impl<D> Encode<PacketStream, D> for &PacketStreamwhere
D: ResourceDialect,
Source§impl PartialEq for PacketStream
impl PartialEq for PacketStream
Source§impl TypeMarker for PacketStream
impl TypeMarker for PacketStream
Source§type Owned = PacketStream
type Owned = PacketStream
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
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.Source§impl ValueTypeMarker for PacketStream
impl ValueTypeMarker for PacketStream
Source§type Borrowed<'a> = &'a PacketStream
type Borrowed<'a> = &'a PacketStream
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<PacketStream as TypeMarker>::Owned,
) -> <PacketStream as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PacketStream as TypeMarker>::Owned, ) -> <PacketStream as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for PacketStream
impl StructuralPartialEq for PacketStream
Auto Trait Implementations§
impl Freeze for PacketStream
impl RefUnwindSafe for PacketStream
impl Send for PacketStream
impl Sync for PacketStream
impl Unpin for PacketStream
impl UnwindSafe for PacketStream
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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