pub struct OpenAt2 { /* private fields */ }
Expand description
Open a file, equivalent to openat2(2)
.
Implementations§
Source§impl OpenAt2
impl OpenAt2
Sourcepub const CODE: u8 = 28u8
pub const CODE: u8 = 28u8
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, how: *const OpenHow, ) -> Self
pub const fn file_index(self, file_index: Option<DestinationSlot>) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for OpenAt2
impl RefUnwindSafe for OpenAt2
impl !Send for OpenAt2
impl !Sync for OpenAt2
impl Unpin for OpenAt2
impl UnwindSafe for OpenAt2
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