Trait netmgr::transport::TransportProto
source · [−]trait TransportProto: Sync + Send {
fn send_packet<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 HandleRef,
endpoint_info: EndPointKey,
packet_data: PacketData
) -> Pin<Box<dyn Future<Output = TxCompletion> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn handle_packet<'life0, 'async_trait>(
&'life0 self,
info: IncomingPacketInfo
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn raw_support(&self) -> RawSupport;
}
Required Methods
sourcefn send_packet<'life0, 'life1, 'async_trait>(
fn send_packet<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 HandleRef,
endpoint_info: EndPointKey,
packet_data: PacketData
) -> Pin<Box<dyn Future<Output = TxCompletion> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn handle_packet<'life0, 'async_trait>(
fn handle_packet<'life0, 'async_trait>(
&'life0 self,
info: IncomingPacketInfo
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
source