pub struct AudioConsumerStatus {
pub error: Option<AudioConsumerError>,
pub presentation_timeline: Option<TimelineFunction>,
pub min_lead_time: Option<u64>,
pub max_lead_time: Option<u64>,
/* private fields */
}
Expand description
Represents the status of the consumer. In the initial status, error
and
presentation_timeline
are absent. The lead time fields are always present.
Fields§
§error: Option<AudioConsumerError>
If present, indicates an error condition currently in effect. Absent if no error.
presentation_timeline: Option<TimelineFunction>
If present, indicates the current relationship between the presentation timeline and local monotonic clock, both in nanosecond units. If not present, indicates there is no relationship. Absent initially.
‘Presentation timeline’ refers to the pts
(presentation timestamp) values on the packets.
This timeline function can be used to determine the local monotonic clock time that a
packet will be presented based on that packet’s pts
value.
min_lead_time: Option<u64>
Indicates the minimum lead time in nanoseconds supported by this
AudioConsumer
. Or in other words, how small of a gap between the
media_time
provided to AudioConsumer.Start
and the pts on the first
packet can be. Values outside this range will be clipped.
max_lead_time: Option<u64>
Indicates the maximum lead time in nanoseconds supported by this
AudioConsumer
. Or in other words, how large of a gap between the
media_time
provided to AudioConsumer.Start
and the pts on the first
packet can be. Values outside this range will be clipped.
Trait Implementations§
Source§impl Clone for AudioConsumerStatus
impl Clone for AudioConsumerStatus
Source§fn clone(&self) -> AudioConsumerStatus
fn clone(&self) -> AudioConsumerStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AudioConsumerStatus
impl Debug for AudioConsumerStatus
Source§impl<D: ResourceDialect> Decode<AudioConsumerStatus, D> for AudioConsumerStatus
impl<D: ResourceDialect> Decode<AudioConsumerStatus, D> for AudioConsumerStatus
Source§impl Default for AudioConsumerStatus
impl Default for AudioConsumerStatus
Source§fn default() -> AudioConsumerStatus
fn default() -> AudioConsumerStatus
Source§impl<D: ResourceDialect> Encode<AudioConsumerStatus, D> for &AudioConsumerStatus
impl<D: ResourceDialect> Encode<AudioConsumerStatus, D> for &AudioConsumerStatus
Source§impl PartialEq for AudioConsumerStatus
impl PartialEq for AudioConsumerStatus
Source§impl TypeMarker for AudioConsumerStatus
impl TypeMarker for AudioConsumerStatus
Source§type Owned = AudioConsumerStatus
type Owned = AudioConsumerStatus
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 AudioConsumerStatus
impl ValueTypeMarker for AudioConsumerStatus
Source§type Borrowed<'a> = &'a AudioConsumerStatus
type Borrowed<'a> = &'a AudioConsumerStatus
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for AudioConsumerStatus
impl StructuralPartialEq for AudioConsumerStatus
Auto Trait Implementations§
impl Freeze for AudioConsumerStatus
impl RefUnwindSafe for AudioConsumerStatus
impl Send for AudioConsumerStatus
impl Sync for AudioConsumerStatus
impl Unpin for AudioConsumerStatus
impl UnwindSafe for AudioConsumerStatus
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
)