pub struct Fallocate { /* private fields */ }
Expand description
Preallocate or deallocate space to a file, equivalent to fallocate(2)
.
Implementations§
Source§impl Fallocate
impl Fallocate
Sourcepub const CODE: u8 = 17u8
pub const CODE: u8 = 17u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
pub fn new(fd: impl UseFixed, len: u64) -> Self
pub const fn offset(self, offset: u64) -> Self
pub const fn mode(self, mode: i32) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for Fallocate
impl RefUnwindSafe for Fallocate
impl Send for Fallocate
impl Sync for Fallocate
impl Unpin for Fallocate
impl UnwindSafe for Fallocate
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