pub struct Splice { /* private fields */ }
Expand description
Splice data to/from a pipe, equivalent to splice(2)
.
if fd_in
refers to a pipe, off_in
must be -1
;
The description of off_in
also applied to off_out
.
Implementations§
source§impl Splice
impl Splice
pub fn new( fd_in: impl UseFixed, off_in: i64, fd_out: impl UseFixed, off_out: i64, len: u32 ) -> Self
sourcepub const CODE: u8 = 30u8
pub const CODE: u8 = 30u8
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 build(self) -> Entry
Auto Trait Implementations§
impl Freeze for Splice
impl RefUnwindSafe for Splice
impl Send for Splice
impl Sync for Splice
impl Unpin for Splice
impl UnwindSafe for Splice
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