pub enum SeekTarget {
PacketIndex(usize),
ClockIndex {
clock: Symbol,
index: Ref,
},
}Expand description
Variants§
PacketIndex(usize)
Start at the packet at this zero-based position in the stream.
ClockIndex
Start at the first packet bearing index on the named clock.
Implementations§
Source§impl SeekTarget
impl SeekTarget
Sourcepub fn packet_index(index: usize) -> Self
pub fn packet_index(index: usize) -> Self
Builds a SeekTarget::PacketIndex for the given position.
Sourcepub fn clock_index(clock: Symbol, index: Ref) -> Self
pub fn clock_index(clock: Symbol, index: Ref) -> Self
Builds a SeekTarget::ClockIndex for the given clock and tick index.
Trait Implementations§
Source§impl Clone for SeekTarget
impl Clone for SeekTarget
Source§fn clone(&self) -> SeekTarget
fn clone(&self) -> SeekTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SeekTarget
impl Debug for SeekTarget
impl Eq for SeekTarget
Source§impl PartialEq for SeekTarget
impl PartialEq for SeekTarget
Source§fn eq(&self, other: &SeekTarget) -> bool
fn eq(&self, other: &SeekTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SeekTarget
Auto Trait Implementations§
impl Freeze for SeekTarget
impl RefUnwindSafe for SeekTarget
impl Send for SeekTarget
impl Sync for SeekTarget
impl Unpin for SeekTarget
impl UnsafeUnpin for SeekTarget
impl UnwindSafe for SeekTarget
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