Struct fidl_fuchsia_virtualaudio::FormatRange
source · #[repr(C)]pub struct FormatRange {
pub sample_format_flags: u32,
pub min_frame_rate: u32,
pub max_frame_rate: u32,
pub min_channels: u8,
pub max_channels: u8,
pub rate_family_flags: u16,
}
Fields§
§sample_format_flags: u32
Has type audio_sample_format_t (see zircon/device/audio.h)
min_frame_rate: u32
§max_frame_rate: u32
§min_channels: u8
§max_channels: u8
§rate_family_flags: u16
Bitfield of ASF_RANGE_FLAG_FPS_*
flags (see zircon/device/audio.h)
Trait Implementations§
source§impl AsBytes for FormatRangewhere
u32: AsBytes,
u8: AsBytes,
u16: AsBytes,
HasPadding<FormatRange, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for FormatRangewhere u32: AsBytes, u8: AsBytes, u16: AsBytes, HasPadding<FormatRange, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Clone for FormatRange
impl Clone for FormatRange
source§fn clone(&self) -> FormatRange
fn clone(&self) -> FormatRange
Returns a copy 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 FormatRange
impl Debug for FormatRange
source§impl Decode<FormatRange> for FormatRange
impl Decode<FormatRange> for FormatRange
source§impl Encode<FormatRange> for &FormatRange
impl Encode<FormatRange> for &FormatRange
source§impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<u32>, T3: Encode<u8>, T4: Encode<u8>, T5: Encode<u16>> Encode<FormatRange> for (T0, T1, T2, T3, T4, T5)
impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<u32>, T3: Encode<u8>, T4: Encode<u8>, T5: Encode<u16>> Encode<FormatRange> for (T0, T1, T2, T3, T4, T5)
source§impl FromBytes for FormatRangewhere
u32: FromBytes,
u8: FromBytes,
u16: FromBytes,
impl FromBytes for FormatRangewhere u32: FromBytes, u8: FromBytes, u16: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self
from zeroed bytes.source§impl Hash for FormatRange
impl Hash for FormatRange
source§impl Ord for FormatRange
impl Ord for FormatRange
source§fn cmp(&self, other: &FormatRange) -> Ordering
fn cmp(&self, other: &FormatRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FormatRange> for FormatRange
impl PartialEq<FormatRange> for FormatRange
source§fn eq(&self, other: &FormatRange) -> bool
fn eq(&self, other: &FormatRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FormatRange> for FormatRange
impl PartialOrd<FormatRange> for FormatRange
source§fn partial_cmp(&self, other: &FormatRange) -> Option<Ordering>
fn partial_cmp(&self, other: &FormatRange) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for FormatRange
impl TypeMarker for FormatRange
§type Owned = FormatRange
type Owned = FormatRange
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 FormatRange
impl ValueTypeMarker for FormatRange
§type Borrowed<'a> = &'a <FormatRange as TypeMarker>::Owned
type Borrowed<'a> = &'a <FormatRange as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more