Struct io_uring::opcode::Splice[][src]

pub struct Splice { /* fields omitted */ }

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

impl Splice[src]

pub fn new(
    fd_in: impl UseFixed,
    off_in: i64,
    fd_out: impl UseFixed,
    off_out: i64,
    len: u32
) -> Self
[src]

pub const CODE: u8[src]

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: u32) -> Self[src]

see man splice(2) for description of flags.

pub fn build(self) -> Entry[src]

Auto Trait Implementations

impl RefUnwindSafe for Splice

impl Send for Splice

impl Sync for Splice

impl Unpin for Splice

impl UnwindSafe for Splice

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.