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
Implementors
impl SocketConnector for LocalDgramSocket
impl SocketConnector for LocalStreamSocket
impl SocketConnector for LocalSeqPacketSocket
impl SocketConnector for TcpSocket
impl SocketConnector for UdpSocket
impl SocketConnector for IcmpSocket