#[repr(u32)]pub enum LSeekWhence {
SEEK_SET = 0,
SEEK_CUR = 1,
SEEK_END = 2,
SEEK_DATA = 3,
SEEK_HOLE = 4,
}Expand description
Valid values for the whence parameter of the lseek syscall.
Variants§
Trait Implementations§
Source§impl Clone for LSeekWhence
impl Clone for LSeekWhence
Source§fn clone(&self) -> LSeekWhence
fn clone(&self) -> LSeekWhence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LSeekWhence
Source§impl Debug for LSeekWhence
impl Debug for LSeekWhence
impl Eq for LSeekWhence
Source§impl From<LSeekWhence> for u32
impl From<LSeekWhence> for u32
Source§fn from(enum_value: LSeekWhence) -> Self
fn from(enum_value: LSeekWhence) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LSeekWhence
impl PartialEq for LSeekWhence
Source§fn eq(&self, other: &LSeekWhence) -> bool
fn eq(&self, other: &LSeekWhence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LSeekWhence
Source§impl TryFrom<u32> for LSeekWhence
impl TryFrom<u32> for LSeekWhence
Source§type Error = TryFromPrimitiveError<LSeekWhence>
type Error = TryFromPrimitiveError<LSeekWhence>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for LSeekWhence
impl TryFromPrimitive for LSeekWhence
const NAME: &'static str = "LSeekWhence"
type Primitive = u32
type Error = TryFromPrimitiveError<LSeekWhence>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for LSeekWhence
impl RefUnwindSafe for LSeekWhence
impl Send for LSeekWhence
impl Sync for LSeekWhence
impl Unpin for LSeekWhence
impl UnsafeUnpin for LSeekWhence
impl UnwindSafe for LSeekWhence
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