#[repr(C)]pub enum Flag {
Show 15 variants
RDONLY = 0,
WRONLY = 1,
RDWR = 2,
CREAT = 3,
EXCL = 4,
NOCTTY = 5,
TRUNC = 6,
APPEND = 7,
NONBLOCK = 8,
DSYNC = 9,
SYNC = 10,
DIRECTORY = 11,
NOFOLLOW = 12,
CLOEXEC = 13,
TODO = 14,
}Variants§
RDONLY = 0
WRONLY = 1
RDWR = 2
CREAT = 3
EXCL = 4
NOCTTY = 5
TRUNC = 6
APPEND = 7
NONBLOCK = 8
DSYNC = 9
SYNC = 10
DIRECTORY = 11
NOFOLLOW = 12
CLOEXEC = 13
TODO = 14
Implementations§
Trait Implementations§
Source§impl Bytes<Origin, Origin> for Flag
impl Bytes<Origin, Origin> for Flag
const BYTES_SIZE: usize = 4usize
const BYTES_ALIGN: usize = 4usize
fn to_bytes(&self, endianness: bool) -> [u8; 4]
fn from_bytes(bytes: [u8; 4], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes(&self) -> [u8; { _ }]
fn to_be_bytes(&self) -> [u8; { _ }]
fn from_le_bytes(bytes: [u8; { _ }]) -> Selfwhere
Self: Sized,
fn from_be_bytes(bytes: [u8; { _ }]) -> Selfwhere
Self: Sized,
impl Copy for Flag
impl Eq for Flag
impl StructuralPartialEq for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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