Trait asyncio::Socket
[−]
[src]
pub trait Socket<P: Protocol>: AsIoContext + AsRawFd + Send + 'static { unsafe fn from_raw_fd(&IoContext, pro: P, fd: RawFd) -> Self; fn protocol(&self) -> P; }
Required Methods
unsafe fn from_raw_fd(&IoContext, pro: P, fd: RawFd) -> Self
fn protocol(&self) -> P
Implementors
impl<P: Protocol> Socket<P> for StreamSocket<P>
impl<P: Protocol> Socket<P> for DgramSocket<P>
impl<P: Protocol> Socket<P> for RawSocket<P>
impl<P: Protocol> Socket<P> for SeqPacketSocket<P>
impl<P: Protocol, S: Socket<P>> Socket<P> for SocketListener<P, S>