Trait rust_asio::SendRecv [] [src]

pub trait SendRecv: Socket + Cancel {
    fn send<T: IoObject>(&self, io: &T, buf: &[u8], flags: i32) -> Result<usize>;
    fn async_send<A, F, T>(a: A, flags: i32, callback: F, obj: &Strand<T>) where A: Fn(&T) -> (&Self, &[u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send;
    fn recv<T: IoObject>(&self, io: &T, buf: &mut [u8], flags: i32) -> Result<usize>;
    fn async_recv<A, F, T>(a: A, flags: i32, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut [u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send;
}

Required Methods

fn send<T: IoObject>(&self, io: &T, buf: &[u8], flags: i32) -> Result<usize>

fn async_send<A, F, T>(a: A, flags: i32, callback: F, obj: &Strand<T>) where A: Fn(&T) -> (&Self, &[u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send

fn recv<T: IoObject>(&self, io: &T, buf: &mut [u8], flags: i32) -> Result<usize>

fn async_recv<A, F, T>(a: A, flags: i32, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut [u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send

Implementors