pub struct FileMode(/* private fields */);

Implementations§

source§

impl FileMode

source

pub const IFLNK: FileMode = _

source

pub const IFREG: FileMode = _

source

pub const IFDIR: FileMode = _

source

pub const IFCHR: FileMode = _

source

pub const IFBLK: FileMode = _

source

pub const IFIFO: FileMode = _

source

pub const IFSOCK: FileMode = _

source

pub const ISUID: FileMode = _

source

pub const ISGID: FileMode = _

source

pub const ISVTX: FileMode = _

source

pub const IRWXU: FileMode = _

source

pub const IRUSR: FileMode = _

source

pub const IWUSR: FileMode = _

source

pub const IXUSR: FileMode = _

source

pub const IRWXG: FileMode = _

source

pub const IRGRP: FileMode = _

source

pub const IWGRP: FileMode = _

source

pub const IXGRP: FileMode = _

source

pub const IRWXO: FileMode = _

source

pub const IROTH: FileMode = _

source

pub const IWOTH: FileMode = _

source

pub const IXOTH: FileMode = _

source

pub const IFMT: FileMode = _

source

pub const DEFAULT_UMASK: FileMode = _

source

pub const ALLOW_ALL: FileMode = _

source

pub const PERMISSIONS: FileMode = _

source

pub const EMPTY: FileMode = _

source

pub const fn from_bits(mask: u32) -> FileMode

source

pub fn from_string(mask: &BStr) -> Result<FileMode, Errno>

source

pub const fn bits(&self) -> u32

source

pub const fn contains(&self, other: FileMode) -> bool

source

pub const fn intersects(&self, other: FileMode) -> bool

source

pub fn fmt(&self) -> FileMode

source

pub const fn with_type(&self, file_type: FileMode) -> FileMode

source

pub const fn is_lnk(&self) -> bool

source

pub const fn is_reg(&self) -> bool

source

pub const fn is_dir(&self) -> bool

source

pub const fn is_chr(&self) -> bool

source

pub const fn is_blk(&self) -> bool

source

pub const fn is_fifo(&self) -> bool

source

pub const fn is_sock(&self) -> bool

Trait Implementations§

source§

impl BitAnd for FileMode

§

type Output = FileMode

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign for FileMode

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr for FileMode

§

type Output = FileMode

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign for FileMode

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl Clone for FileMode

source§

fn clone(&self) -> FileMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FileMode

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for FileMode

source§

fn default() -> FileMode

Returns the “default value” for a type. Read more
source§

impl Not for FileMode

§

type Output = FileMode

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl PartialEq for FileMode

source§

fn eq(&self, other: &FileMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for FileMode

source§

impl Eq for FileMode

source§

impl StructuralPartialEq for FileMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn type_name(&self) -> &'static str

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> Encode<Ambiguous1> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> Encode<Ambiguous2> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

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> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more