pub struct CodecFormatInfo {
pub external_delay: Option<i64>,
pub turn_on_delay: Option<i64>,
pub turn_off_delay: Option<i64>,
/* private fields */
}
Expand description
Codec format information.
Fields§
§external_delay: Option<i64>
The driver’s best estimate of the external delay (in nanoseconds) present in the pipeline
for the chosen format. When precisely synchronizing presentation across multiple entities
(e.g. devices), the external delay should be taken into account.
If not included external_delay
is unknown.
Optional.
turn_on_delay: Option<i64>
The driver’s best estimate of the amount of time (in nanoseconds) it takes the hardware to
actually start playback/capture after a Start
command is issued.
It may take some time for the hardware to get into fully operational mode, for example due
a power state change. This delay must be taken into account if not getting the initial audio
samples played or captured is not acceptable.
If not included turn_on_delay
is unknown.
Optional.
turn_off_delay: Option<i64>
The driver’s best estimate of the amount of time (in nanoseconds) it takes the hardware to
actually stop playback/capture after a Stop
command is issued.
It may take some time for the hardware to get into fully stopped mode, for example due
a power state change. This delay must be taken into account if playback/capture of samples
after a ‘Stop’ command is not acceptable.
If not included, the turn off delay is unknown.
Optional.
Trait Implementations§
Source§impl Clone for CodecFormatInfo
impl Clone for CodecFormatInfo
Source§fn clone(&self) -> CodecFormatInfo
fn clone(&self) -> CodecFormatInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CodecFormatInfo
impl Debug for CodecFormatInfo
Source§impl<D: ResourceDialect> Decode<CodecFormatInfo, D> for CodecFormatInfo
impl<D: ResourceDialect> Decode<CodecFormatInfo, D> for CodecFormatInfo
Source§impl Default for CodecFormatInfo
impl Default for CodecFormatInfo
Source§fn default() -> CodecFormatInfo
fn default() -> CodecFormatInfo
Source§impl<D: ResourceDialect> Encode<CodecFormatInfo, D> for &CodecFormatInfo
impl<D: ResourceDialect> Encode<CodecFormatInfo, D> for &CodecFormatInfo
Source§impl PartialEq for CodecFormatInfo
impl PartialEq for CodecFormatInfo
Source§impl TypeMarker for CodecFormatInfo
impl TypeMarker for CodecFormatInfo
Source§type Owned = CodecFormatInfo
type Owned = CodecFormatInfo
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.Source§impl ValueTypeMarker for CodecFormatInfo
impl ValueTypeMarker for CodecFormatInfo
Source§type Borrowed<'a> = &'a CodecFormatInfo
type Borrowed<'a> = &'a CodecFormatInfo
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for CodecFormatInfo
impl StructuralPartialEq for CodecFormatInfo
Auto Trait Implementations§
impl Freeze for CodecFormatInfo
impl RefUnwindSafe for CodecFormatInfo
impl Send for CodecFormatInfo
impl Sync for CodecFormatInfo
impl Unpin for CodecFormatInfo
impl UnwindSafe for CodecFormatInfo
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)