pub enum SeekFrom {
Start(u64),
End(i64),
Current(i64),
}
Expand description
A description of a seek operation in a stream.
While pw_stream
targets embedded platforms which are often natively
32 bit, we believe that seek operation are relatively rare and the added
overhead of using 64 bit values for seeks is balanced by the ability
to support objects and operations over 4 GiB.
Variants§
Start(u64)
Seek from the start of the stream.
End(i64)
Seek from the end of the stream.
Current(i64)
Seek from the current position of the stream.
Auto Trait Implementations§
impl RefUnwindSafe for SeekFrom
impl Send for SeekFrom
impl Sync for SeekFrom
impl Unpin for SeekFrom
impl UnwindSafe for SeekFrom
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