Struct io_uring::opcode::Fallocate64
source · [−]pub struct Fallocate64 { /* private fields */ }
Expand description
Preallocate or deallocate space to a file, equivalent to fallocate(2)
.
Implementations
sourceimpl Fallocate64
impl Fallocate64
pub fn new(fd: impl UseFixed, len: off64_t) -> Self
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 const fn offset64(self, offset64: off64_t) -> Self
pub const fn mode(self, mode: i32) -> Self
pub fn build(self) -> Entry
sourceimpl Fallocate64
impl Fallocate64
Auto Trait Implementations
impl RefUnwindSafe for Fallocate64
impl Send for Fallocate64
impl Sync for Fallocate64
impl Unpin for Fallocate64
impl UnwindSafe for Fallocate64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more