Enum nix::fcntl::FcntlArg

#[non_exhaustive]
pub enum FcntlArg<'a> {    
    F_DUPFD(RawFd),
    F_DUPFD_CLOEXEC(RawFd),
    F_GETFD,
    F_SETFD(FdFlag),
    F_GETFL,
    F_SETFL(OFlag),
    F_SETLK(&'a libc::flock),
    F_SETLKW(&'a libc::flock),
    F_GETLK(&'a mut libc::flock),
    F_OFD_SETLK(&'a libc::flock),
    F_OFD_SETLKW(&'a libc::flock),
    F_OFD_GETLK(&'a mut libc::flock),
    F_ADD_SEALS(SealFlag),
    F_GET_SEALS,
    F_GETPIPE_SZ,
    F_SETPIPE_SZ(c_int),
}

Variants

F_DUPFD(RawFd)
F_DUPFD_CLOEXEC(RawFd)
F_GETFD
F_SETFD(FdFlag)
F_GETFL
F_SETFL(OFlag)
F_SETLK(&'a libc::flock)
&'a libc::flock
F_SETLKW(&'a libc::flock)
&'a libc::flock
F_GETLK(&'a mut libc::flock)
&'a mut libc::flock
F_OFD_SETLK(&'a libc::flock)
&'a libc::flock
F_OFD_SETLKW(&'a libc::flock)
&'a libc::flock
F_OFD_GETLK(&'a mut libc::flock)
&'a mut libc::flock
F_ADD_SEALS(SealFlag)
F_GET_SEALS
F_GETPIPE_SZ
F_SETPIPE_SZ(c_int)
c_int

Trait Implementations

impl<'a> Debug for FcntlArg<'a>
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<'a> Eq for FcntlArg<'a>
impl<'a> Hash for FcntlArg<'a>
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl<'a> PartialEq<FcntlArg<'a>> for FcntlArg<'a>
fn eq(&Self, other: &FcntlArg<'a>) -> bool
fn ne(&Self, other: &FcntlArg<'a>) -> bool
impl<'a> StructuralEq for FcntlArg<'a>
impl<'a> StructuralPartialEq for FcntlArg<'a>

Auto Trait Implementations

impl<'a> !UnwindSafe for FcntlArg<'a>
impl<'a> RefUnwindSafe for FcntlArg<'a>
impl<'a> Send for FcntlArg<'a>
impl<'a> Sync for FcntlArg<'a>
impl<'a> Unpin for FcntlArg<'a>

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>