pub fn send<'a, F, B>(
        &'a self,
        stream: &'a F,
        iov: &'a B,
        ordering: EventOrdering,
    ) -> Completion<'a, usize>
    where
        F: AsRawFd,
        B: 'a + AsIoVec,
    {
        let iov = iov.into_new_iovec();

        self.with_sqe(None, true, |sqe| {
            sqe.prep_rw(IORING_OP_SEND, stream.as_raw_fd(), 0, 0, ordering);
            sqe.addr = iov.iov_base as u64;
            sqe.len = u32::try_from(iov.iov_len).unwrap();
        })
    }
/// Send a buffer to the target socket
/// or file-like destination.
///
/// Returns the length that was successfully
/// written.
///
/// Accepts an `EventOrdering` specification.
///
/// # Warning
///
/// This only becomes usable on linux kernels
/// 5.6 and up.
Send a buffer to the target socket
or file-like destination.

Returns the length that was successfully
written.

Accepts an `EventOrdering` specification.
Send a buffer to the target socket or file - like destination . Returns the length that was successfully written . Accepts an ` EventOrdering ` specification .
pub fn send<'a, F, B>(
        &'a self,
        stream: &'a F,
        iov: &'a B,
        ordering: EventOrdering,
    ) -> Completion<'a, usize>
    where
        F: AsRawFd,
        B: 'a + AsIoVec,
    {
        let iov = iov.into_new_iovec();
        self.with_sqe(None, true, |sqe| {
            sqe.prep_rw(IORING_OP_SEND, stream.as_raw_fd(), 0, 0, ordering);
            sqe.addr = iov.iov_base as u64;
            sqe.len = u32::try_from(iov.iov_len).unwrap();
        })
    }
pub fn send < ' a , F , B > ( & ' a self , stream : & ' a F , iov : & ' a B , ordering : EventOrdering , ) -> Completion < ' a , usize > where F : AsRawFd , B : ' a + AsIoVec , { let iov = iov . into_new_iovec ( ) ; self . with_sqe ( None , true , | sqe | { sqe . prep_rw ( IORING_OP_SEND , stream . as_raw_fd ( ) , 0 , 0 , ordering ) ; sqe . addr = iov . iov_base as u64 ; sqe . len = u32 :: try_from ( iov . iov_len ) . unwrap ( ) ; } ) }
Send a buffer to the target socket
or file-like destination.
Send a buffer to the target socket or file - like destination .
&'a self
stream
&'a F
iov
&'a B
ordering
EventOrdering
&'a self
stream
&'a F
iov
&'a B
ordering
EventOrdering
warning
This only becomes usable on linux kernels
5.6 and up.
This only becomes usable on linux kernels 5 . 6 and up .