Enum creek_core::SeekMode[][src]

pub enum SeekMode {
    Auto,
    TryOne(usize),
    TryOneThenAuto(usize),
    NoCache,
}
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

Auto

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: usize
TryOneThenAuto(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: usize
NoCache

Seek without searching for a suitable cache. This will cause the stream to buffer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.