Enum creek_core::SeekMode [−][src]
Expand description
Describes how to search for suitable caches when seeking in a ReadDiskStream.
If a suitable cache is found, then reading can resume immediately. If not, then the stream will need to buffer before it can read data. In this case, you may decide to either continue reading (which will return silence) or to pause playback temporarily.
Variants
Automatically search for a suitable cache to use. This is the default mode.
TryOne(usize)Only try one cache with the given index. If you already know a suitable cache, this can be more performant than searching each cache individually.
Tuple Fields of TryOne
0: usizeTryOneThenAuto(usize)Try the given cache with the given index, and if it is not suitable, automatically search for a suitable one. If you already know a suitable cache, this can be more performant than searching each cache individually.
Tuple Fields of TryOneThenAuto
0: usizeSeek without searching for a suitable cache. This will cause the stream to buffer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SeekMode
impl UnwindSafe for SeekMode
Blanket Implementations
Mutably borrows from an owned value. Read more