Trait breadx::display::AsyncConnection[][src]

pub trait AsyncConnection {
    fn send_packet<'future, 'a, 'b, 'c>(
        &'a mut self,
        bytes: &'b [u8],
        fds: &'c mut Vec<Fd>
    ) -> GenericConnFuture<'future>
    where
        'a: 'future,
        'b: 'future,
        'c: 'future
;
fn read_packet<'future, 'a, 'b, 'c>(
        &'a mut self,
        bytes: &'b mut [u8],
        fds: &'c mut Vec<Fd>
    ) -> GenericConnFuture<'future>
    where
        'a: 'future,
        'b: 'future,
        'c: 'future
; }

Asynchronous breadx connection.

Required methods

fn send_packet<'future, 'a, 'b, 'c>(
    &'a mut self,
    bytes: &'b [u8],
    fds: &'c mut Vec<Fd>
) -> GenericConnFuture<'future> where
    'a: 'future,
    'b: 'future,
    'c: 'future, 
[src]

Send a packet across the connection in an async manner.

fn read_packet<'future, 'a, 'b, 'c>(
    &'a mut self,
    bytes: &'b mut [u8],
    fds: &'c mut Vec<Fd>
) -> GenericConnFuture<'future> where
    'a: 'future,
    'b: 'future,
    'c: 'future, 
[src]

Read a packet from the connection in an async manner.

Loading content...

Implementations on Foreign Types

impl AsyncConnection for TcpStream[src]

impl AsyncConnection for UnixStream[src]

Loading content...

Implementors

impl AsyncConnection for AsyncNameConnection[src]

Loading content...