Trait asyncio::Protocol
[−]
[src]
pub trait Protocol: Debug + Clone + Send + 'static { type Endpoint: Endpoint<Self>; fn family_type(&self) -> i32; fn socket_type(&self) -> i32; fn protocol_type(&self) -> i32; unsafe fn uninitialized(&self) -> Self::Endpoint; }
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.
unsafe fn uninitialized(&self) -> Self::Endpoint
Implementors
impl Protocol for Tcp
impl Protocol for Udp
impl Protocol for Icmp
impl Protocol for LocalDgram
impl Protocol for LocalStream
impl Protocol for LocalSeqPacket
impl Protocol for GenericStream
impl Protocol for GenericDgram
impl Protocol for GenericRaw
impl Protocol for GenericSeqPacket