#[non_exhaustive]pub enum SeekMode {
Nearest,
AtOrBefore,
AtOrAfter,
}Expand description
Which presentation a seek selects relative to the target time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nearest
The nearest; on a tie, the earlier.
AtOrBefore
The last at or before the target.
AtOrAfter
The first at or after the target.
Trait Implementations§
impl Copy for SeekMode
impl Eq for SeekMode
impl StructuralPartialEq for SeekMode
Auto Trait Implementations§
impl Freeze for SeekMode
impl RefUnwindSafe for SeekMode
impl Send for SeekMode
impl Sync for SeekMode
impl Unpin for SeekMode
impl UnsafeUnpin for SeekMode
impl UnwindSafe for SeekMode
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