pub enum Timestamp {
Specified(i64),
UnspecifiedContinuous(UnspecifiedContinuous),
UnspecifiedBestEffort(UnspecifiedBestEffort),
// some variants omitted
}
Expand description
Indicates the position of an audio packet in the stream timeline.
Variants§
Specified(i64)
Specific time in the stream timeline. Units vary and are provided when the connection is established.
UnspecifiedContinuous(UnspecifiedContinuous)
Indicates the packet should be presented immediately after the previous packet, if there is
a previous packet. If there is no previous packet, this option is equivalent to a
specified
value of 0.
This option implies that the stream timeline should not ‘slip’ even if the packet arrives late. The packet is intended to be presented immediately after the previous packet, and the resulting timing is to be maintained regardless of the arrival time of the packet.
UnspecifiedBestEffort(UnspecifiedBestEffort)
Indicates the packet should be presented as soon as possible after the previous packet, if there is one, as soon as possible if not.
This option implies that the stream time should ‘slip’ if the packet arrives too late to be rendered immediately after the previous packet. This option is often used when a gap occurs in an un-timestamped stream, perhaps due to a lossy upstream source.
Implementations§
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Timestamp, D> for Timestamp
impl<D: ResourceDialect> Decode<Timestamp, D> for Timestamp
Source§impl TypeMarker for Timestamp
impl TypeMarker for Timestamp
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 Timestamp
impl ValueTypeMarker for Timestamp
impl Persistable for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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
)