Struct rustix_uring::opcode::Splice
source · 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: IoringOp = _
pub const CODE: IoringOp = _
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.
sourcepub const fn flags(self, flags: SpliceFlags) -> Self
pub const fn flags(self, flags: SpliceFlags) -> Self
see man splice(2)
for description of flags.