#[repr(i32)]pub enum FlagValue {
Show 22 variants
ReadOnly,
WriteOnly,
ReadWrite,
AccMode,
Create,
Exclusive,
NoCtty,
Truncate,
Append,
NonBlock,
Dsync,
Async,
Direct,
Directory,
NoFollow,
NoAtime,
CloseExec,
Rsync,
Path,
TmpFile,
Process,
Server,
}
Expand description
The generators for the group of Flags.
These are mostly values from libc, save for several custom values. Note that the presence of a
flag in this enum does not guarantee it’s supported.
The standard libc O_*
value which corresponds to each variant is given in the variant’s
comment.
Consult your libc documentation for an explanation of what these means.
Variants§
ReadOnly
O_RDONLY
WriteOnly
O_WRONLY
ReadWrite
O_RDWR
AccMode
O_ACCMODE
Create
O_CREAT
Exclusive
O_EXCL
NoCtty
O_NOCTTY
Truncate
O_TRUNC
Append
O_APPEND
NonBlock
O_NONBLOCK
Dsync
O_DSYNC
Async
O_ASYNC
Direct
O_DIRECT
Directory
O_DIRECTORY
NoFollow
O_NOFOLLOW
NoAtime
O_NOATIME
CloseExec
O_CLOEXEC
Rsync
O_RSYNC
Path
O_PATH
TmpFile
O_TMPFILE
Process
Indicates that a process block should be created.
Server
Indicates that a server block should be created.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for FlagValue
impl<'de> Deserialize<'de> for FlagValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<FlagValue> for FlagValue
impl PartialEq<FlagValue> for FlagValue
impl Copy for FlagValue
impl Eq for FlagValue
impl StructuralEq for FlagValue
impl StructuralPartialEq for FlagValue
Auto Trait Implementations§
impl RefUnwindSafe for FlagValue
impl Send for FlagValue
impl Sync for FlagValue
impl Unpin for FlagValue
impl UnwindSafe for FlagValue
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