pub struct LinkAt { /* private fields */ }
Expand description
Create a hard link, equivalent to linkat2(2)
.
Implementations§
source§impl LinkAt
impl LinkAt
pub fn new( olddirfd: impl UseFd, oldpath: *const c_char, newdirfd: impl UseFd, newpath: *const c_char ) -> Self
sourcepub const CODE: u8 = 39u8
pub const CODE: u8 = 39u8
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 flags(self, flags: i32) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for LinkAt
impl RefUnwindSafe for LinkAt
impl !Send for LinkAt
impl !Sync for LinkAt
impl Unpin for LinkAt
impl UnwindSafe for LinkAt
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