Trait asyncio::Protocol
[−]
[src]
pub trait Protocol: Clone + Send + 'static { type Endpoint: Endpoint<Self>; fn family_type(&self) -> i32; fn socket_type(&self) -> i32; fn protocol_type(&self) -> i32; }
Associated Types
Required Methods
fn family_type(&self) -> i32
Reurns a value suitable for passing as the domain argument.
fn socket_type(&self) -> i32
Returns a value suitable for passing as the type argument.
fn protocol_type(&self) -> i32
Returns a value suitable for passing as the protocol argument.
Implementors
impl Protocol for Tcpimpl Protocol for Udpimpl Protocol for Icmpimpl Protocol for GenericStreamimpl Protocol for GenericDgramimpl Protocol for GenericRawimpl Protocol for GenericSeqPacketimpl Protocol for LocalDgramimpl Protocol for LocalStreamimpl Protocol for LocalSeqPacket