pub struct PacketStreamSetBuffersRequest {
pub vmo_info: Option<PacketStreamSetupVmoInfo>,
/* private fields */
}Fields§
§vmo_info: Option<PacketStreamSetupVmoInfo>Setup information for audio data transfer.
The options chosen should be supported by the driver as reported
in PacketStreamProperties.supported_buffer_types.
Required.
Trait Implementations§
Source§impl Decode<PacketStreamSetBuffersRequest, FDomainResourceDialect> for PacketStreamSetBuffersRequest
impl Decode<PacketStreamSetBuffersRequest, FDomainResourceDialect> for PacketStreamSetBuffersRequest
Source§impl Default for PacketStreamSetBuffersRequest
impl Default for PacketStreamSetBuffersRequest
Source§fn default() -> PacketStreamSetBuffersRequest
fn default() -> PacketStreamSetBuffersRequest
Returns the “default value” for a type. Read more
Source§impl Encode<PacketStreamSetBuffersRequest, FDomainResourceDialect> for &mut PacketStreamSetBuffersRequest
impl Encode<PacketStreamSetBuffersRequest, FDomainResourceDialect> for &mut PacketStreamSetBuffersRequest
Source§impl PartialEq for PacketStreamSetBuffersRequest
impl PartialEq for PacketStreamSetBuffersRequest
Source§fn eq(&self, other: &PacketStreamSetBuffersRequest) -> bool
fn eq(&self, other: &PacketStreamSetBuffersRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ResourceTypeMarker for PacketStreamSetBuffersRequest
impl ResourceTypeMarker for PacketStreamSetBuffersRequest
Source§type Borrowed<'a> = &'a mut PacketStreamSetBuffersRequest
type Borrowed<'a> = &'a mut PacketStreamSetBuffersRequest
The Rust type to use for encoding. This is a particular
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>
Cheaply converts from
&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 PacketStreamSetBuffersRequest
impl TypeMarker for PacketStreamSetBuffersRequest
Source§type Owned = PacketStreamSetBuffersRequest
type Owned = PacketStreamSetBuffersRequest
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.impl Standalone<FDomainResourceDialect> for PacketStreamSetBuffersRequest
impl StructuralPartialEq for PacketStreamSetBuffersRequest
Auto Trait Implementations§
impl Freeze for PacketStreamSetBuffersRequest
impl !RefUnwindSafe for PacketStreamSetBuffersRequest
impl Send for PacketStreamSetBuffersRequest
impl Sync for PacketStreamSetBuffersRequest
impl Unpin for PacketStreamSetBuffersRequest
impl !UnwindSafe for PacketStreamSetBuffersRequest
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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
Converts the given service transport handle of type
T to [Self]