#[non_exhaustive]#[repr(u8)]pub enum whence {
CUR = 1,
END = 2,
SET = 3,
}Expand description
Relative to which position the offset of the file descriptor should be set.
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.
CUR = 1
Seek relative to current position.
END = 2
Seek relative to end-of-file.
SET = 3
Seek relative to start-of-file.
Trait Implementations§
impl Copy for whence
impl Eq for whence
impl StructuralPartialEq for whence
Auto Trait Implementations§
impl Freeze for whence
impl RefUnwindSafe for whence
impl Send for whence
impl Sync for whence
impl Unpin for whence
impl UnwindSafe for whence
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