pub fn connect<'a, F>(
        &'a self,
        socket: &'a F,
        address: &std::net::SocketAddr,
        ordering: EventOrdering,
    ) -> Completion<'a, ()>
    where
        F: AsRawFd,
    {
        let (addr, len) = addr2raw(address);
        self.with_sqe(None, false, |sqe| {
            sqe.prep_rw(
                IORING_OP_CONNECT,
                socket.as_raw_fd(),
                0,
                len as u64,
                ordering,
            );

            sqe.addr = addr as u64;
        })
    }
/// Asynchronously connects a `TcpStream` from
/// a provided `SocketAddr`.
///
/// # Warning
///
/// This only becomes usable on linux kernels
/// 5.5 and up.
Asynchronously connects a `TcpStream` from
a provided `SocketAddr`.
Asynchronously connects a ` TcpStream ` from a provided ` SocketAddr ` .
pub fn connect<'a, F>(
        &'a self,
        socket: &'a F,
        address: &std::net::SocketAddr,
        ordering: EventOrdering,
    ) -> Completion<'a, ()>
    where
        F: AsRawFd,
    {
        let (addr, len) = addr2raw(address);
        self.with_sqe(None, false, |sqe| {
            sqe.prep_rw(
                IORING_OP_CONNECT,
                socket.as_raw_fd(),
                0,
                len as u64,
                ordering,
            );
            sqe.addr = addr as u64;
        })
    }
pub fn connect < ' a , F > ( & ' a self , socket : & ' a F , address : & std :: net :: SocketAddr , ordering : EventOrdering , ) -> Completion < ' a , ( ) > where F : AsRawFd , { let ( addr , len ) = addr2raw ( address ) ; self . with_sqe ( None , false , | sqe | { sqe . prep_rw ( IORING_OP_CONNECT , socket . as_raw_fd ( ) , 0 , len as u64 , ordering , ) ; sqe . addr = addr as u64 ; } ) }
Asynchronously connects a `TcpStream` from
a provided `SocketAddr`.
Asynchronously connects a ` TcpStream ` from a provided ` SocketAddr ` .
&'a self
socket
&'a F
address
&std::net::SocketAddr
ordering
EventOrdering
&'a self
socket
&'a F
address
&std::net::SocketAddr
ordering
EventOrdering
warning
This only becomes usable on linux kernels
5.5 and up.
This only becomes usable on linux kernels 5 . 5 and up .