pub struct Fadvise { /* private fields */ }
Expand description
Predeclare an access pattern for file data, equivalent to posix_fadvise(2)
.
Implementations§
Source§impl Fadvise
impl Fadvise
Sourcepub const CODE: u8 = 24u8
pub const CODE: u8 = 24u8
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: off_t, advice: i32) -> Self
pub const fn offset(self, offset: u64) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for Fadvise
impl RefUnwindSafe for Fadvise
impl Send for Fadvise
impl Sync for Fadvise
impl Unpin for Fadvise
impl UnwindSafe for Fadvise
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