pub struct OpenAt { /* private fields */ }
Expand description
Open a file, equivalent to openat(2)
.
Implementations§
Source§impl OpenAt
impl OpenAt
Sourcepub const CODE: u8 = 18u8
pub const CODE: u8 = 18u8
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(dirfd: impl UseFd, pathname: *const c_char) -> Self
pub const fn file_index(self, file_index: Option<DestinationSlot>) -> Self
pub const fn flags(self, flags: i32) -> Self
pub const fn mode(self, mode: mode_t) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for OpenAt
impl RefUnwindSafe for OpenAt
impl !Send for OpenAt
impl !Sync for OpenAt
impl Unpin for OpenAt
impl UnwindSafe for OpenAt
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