Trait rust_asio::SocketConnector [] [src]

pub trait SocketConnector: Socket + Cancel {
    fn connect<T: IoObject>(&self, io: &T, ep: &Self::Endpoint) -> Result<()>;
    fn async_connect<A, F, T>(a: A, ep: &Self::Endpoint, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send;
    fn remote_endpoint(&self) -> Result<Self::Endpoint>;

    fn available(&self) -> Result<usize> { ... }
}

Required Methods

fn connect<T: IoObject>(&self, io: &T, ep: &Self::Endpoint) -> Result<()>

fn async_connect<A, F, T>(a: A, ep: &Self::Endpoint, callback: F, obj: &Strand<T>) where A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<()>) + Send

fn remote_endpoint(&self) -> Result<Self::Endpoint>

Provided Methods

fn available(&self) -> Result<usize>

Implementors