Enum FcntlArg

enum FcntlArg<'a>

Commands for use with fcntl.

Variants

F_DUPFD(std::os::unix::io::RawFd)

Duplicate the provided file descriptor

F_DUPFD_CLOEXEC(std::os::unix::io::RawFd)

Duplicate the provided file descriptor and set the FD_CLOEXEC flag on it.

F_GETFD

Get the close-on-exec flag associated with the file descriptor

F_SETFD(FdFlag)

Set the close-on-exec flag associated with the file descriptor

F_GETFL

Get descriptor status flags

F_SETFL(OFlag)

Set descriptor status flags

F_SETLK(&'a libc::flock)

Set or clear a file segment lock

F_SETLKW(&'a libc::flock)

Like F_SETLK except that if a shared or exclusive lock is blocked by other locks, the process waits until the request can be satisfied.

F_GETLK(&'a mut libc::flock)

Get the first lock that blocks the lock description

F_OFD_SETLK(&'a libc::flock)

Acquire or release an open file description lock

F_OFD_SETLKW(&'a libc::flock)

Like F_OFD_SETLK except that if a conflicting lock is held on the file, then wait for that lock to be released.

F_OFD_GETLK(&'a mut libc::flock)

Determine whether it would be possible to create the given lock. If not, return details about one existing lock that would prevent it.

F_ADD_SEALS(SealFlag)

Add seals to the file

F_GET_SEALS

Get seals associated with the file

F_GETPIPE_SZ

Return the capacity of a pipe

F_SETPIPE_SZ(libc::c_int)

Change the capacity of a pipe

Implementations

impl<'a> Debug for FcntlArg<'a>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<'a> Eq for FcntlArg<'a>

impl<'a> Freeze for FcntlArg<'a>

impl<'a> Hash for FcntlArg<'a>

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl<'a> PartialEq for FcntlArg<'a>

fn eq(self: &Self, other: &FcntlArg<'a>) -> bool

impl<'a> RefUnwindSafe for FcntlArg<'a>

impl<'a> Send for FcntlArg<'a>

impl<'a> StructuralPartialEq for FcntlArg<'a>

impl<'a> Sync for FcntlArg<'a>

impl<'a> Unpin for FcntlArg<'a>

impl<'a> UnsafeUnpin for FcntlArg<'a>

impl<'a> UnwindSafe for FcntlArg<'a>

impl<T> Any for FcntlArg<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for FcntlArg<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for FcntlArg<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for FcntlArg<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for FcntlArg<'a>

fn into(self: 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 for FcntlArg<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for FcntlArg<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>