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§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.