pub struct Dqblk(/* private fields */);
Expand description
Wrapper type for if_dqblk
Implementations§
source§impl Dqblk
impl Dqblk
sourcepub fn blocks_hard_limit(&self) -> Option<u64>
pub fn blocks_hard_limit(&self) -> Option<u64>
The absolute limit on disk quota blocks allocated.
sourcepub fn set_blocks_hard_limit(&mut self, limit: u64)
pub fn set_blocks_hard_limit(&mut self, limit: u64)
Set the absolute limit on disk quota blocks allocated.
sourcepub fn blocks_soft_limit(&self) -> Option<u64>
pub fn blocks_soft_limit(&self) -> Option<u64>
Preferred limit on disk quota blocks
sourcepub fn set_blocks_soft_limit(&mut self, limit: u64)
pub fn set_blocks_soft_limit(&mut self, limit: u64)
Set the preferred limit on disk quota blocks allocated.
sourcepub fn occupied_space(&self) -> Option<u64>
pub fn occupied_space(&self) -> Option<u64>
Current occupied space (bytes).
sourcepub fn inodes_hard_limit(&self) -> Option<u64>
pub fn inodes_hard_limit(&self) -> Option<u64>
Maximum number of allocated inodes.
sourcepub fn set_inodes_hard_limit(&mut self, limit: u64)
pub fn set_inodes_hard_limit(&mut self, limit: u64)
Set the maximum number of allocated inodes.
sourcepub fn inodes_soft_limit(&self) -> Option<u64>
pub fn inodes_soft_limit(&self) -> Option<u64>
Preferred inode limit
sourcepub fn set_inodes_soft_limit(&mut self, limit: u64)
pub fn set_inodes_soft_limit(&mut self, limit: u64)
Set the preferred limit of allocated inodes.
sourcepub fn allocated_inodes(&self) -> Option<u64>
pub fn allocated_inodes(&self) -> Option<u64>
Current number of allocated inodes.
sourcepub fn block_time_limit(&self) -> Option<u64>
pub fn block_time_limit(&self) -> Option<u64>
Time limit for excessive disk use.
sourcepub fn set_block_time_limit(&mut self, limit: u64)
pub fn set_block_time_limit(&mut self, limit: u64)
Set the time limit for excessive disk use.
sourcepub fn inode_time_limit(&self) -> Option<u64>
pub fn inode_time_limit(&self) -> Option<u64>
Time limit for excessive files.
sourcepub fn set_inode_time_limit(&mut self, limit: u64)
pub fn set_inode_time_limit(&mut self, limit: u64)
Set the time limit for excessive files.
Trait Implementations§
impl Copy for Dqblk
impl Eq for Dqblk
impl StructuralPartialEq for Dqblk
Auto Trait Implementations§
impl Freeze for Dqblk
impl RefUnwindSafe for Dqblk
impl Send for Dqblk
impl Sync for Dqblk
impl Unpin for Dqblk
impl UnwindSafe for Dqblk
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)