Struct nix::sys::quota::Dqblk

#[repr(transparent)]
pub struct Dqblk(_);
Documentation

Wrapper type for if_dqblk

Implementations

impl Dqblk
pub fn blocks_hard_limit(&Self) -> Option<u64>

The absolute limit on disk quota blocks allocated.

pub fn set_blocks_hard_limit(&mut Self, limit: u64)

Set the absolute limit on disk quota blocks allocated.

pub fn blocks_soft_limit(&Self) -> Option<u64>

Preferred limit on disk quota blocks

pub fn set_blocks_soft_limit(&mut Self, limit: u64)

Set the preferred limit on disk quota blocks allocated.

pub fn occupied_space(&Self) -> Option<u64>

Current occupied space (bytes).

pub fn inodes_hard_limit(&Self) -> Option<u64>

Maximum number of allocated inodes.

pub fn set_inodes_hard_limit(&mut Self, limit: u64)

Set the maximum number of allocated inodes.

pub fn inodes_soft_limit(&Self) -> Option<u64>

Preferred inode limit

pub fn set_inodes_soft_limit(&mut Self, limit: u64)

Set the preferred limit of allocated inodes.

pub fn allocated_inodes(&Self) -> Option<u64>

Current number of allocated inodes.

pub fn block_time_limit(&Self) -> Option<u64>

Time limit for excessive disk use.

pub fn set_block_time_limit(&mut Self, limit: u64)

Set the time limit for excessive disk use.

pub fn inode_time_limit(&Self) -> Option<u64>

Time limit for excessive files.

pub fn set_inode_time_limit(&mut Self, limit: u64)

Set the time limit for excessive files.

Trait Implementations

impl Clone for Dqblk
fn clone(&Self) -> Dqblk
impl Copy for Dqblk
impl Debug for Dqblk
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Default for Dqblk
fn default() -> Dqblk
impl Eq for Dqblk
impl Hash for Dqblk
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<Dqblk> for Dqblk
fn eq(&Self, other: &Dqblk) -> bool
fn ne(&Self, other: &Dqblk) -> bool
impl StructuralEq for Dqblk

Auto Trait Implementations

impl RefUnwindSafe for Dqblk
impl Send for Dqblk
impl Sync for Dqblk
impl Unpin for Dqblk
impl UnwindSafe for Dqblk

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> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
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>