pub enum SeekTarget {
From,
UpTo,
Precise,
}
Expand description
Used to specify a search direction when a stream cannot seek exactly to the requested target point; timestamp, frame or byte.
Variants§
From
Seek, at least, to the requested target point in the stream. If the target cannot be met then move forward in the stream until a possible seek target can be hit.
UpTo
Seek, at most, to the requested target point in the stream. If the target cannot be met then move backward in the stream until a possible seek target can be hit.
Precise
Force seeking to the requested target point in the stream, even if the Demuxer for this type of stream, does not support it.
Auto Trait Implementations§
impl Freeze for SeekTarget
impl RefUnwindSafe for SeekTarget
impl Send for SeekTarget
impl Sync for SeekTarget
impl Unpin 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