[][src]Struct pathrs::RenameFlags

pub struct RenameFlags(pub c_int);

Wrapper for the underlying libc's RENAME_* flags.

The flag values and their meaning is identical to the description in the renameat2(2) man page.

renameat2(2) might not not be supported on your kernel -- in which case Root::rename will fail if you specify any RenameFlags. You can verify whether renameat2(2) flags are supported by calling RenameFlags::supported.

Methods

impl RenameFlags[src]

pub fn supported(self) -> bool[src]

Is this set of RenameFlags supported by the running kernel?

Trait Implementations

impl Clone for RenameFlags[src]

impl Copy for RenameFlags[src]

impl Debug for RenameFlags[src]

impl Default for RenameFlags[src]

impl Eq for RenameFlags[src]

impl PartialEq<RenameFlags> for RenameFlags[src]

impl StructuralEq for RenameFlags[src]

impl StructuralPartialEq for RenameFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.