[−][src]Trait async_protocol::AsyncTransport
Required methods
#[must_use]pub fn process_data<'life0, 'life1, 'life2, 'async_trait, R: AsyncRead + Send + Unpin>(
&'life0 mut self,
read: &'life1 mut R,
settings: &'life2 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
read: &'life1 mut R,
settings: &'life2 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn receive_raw_packet<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn send_raw_packet<'life0, 'life1, 'life2, 'life3, 'async_trait, W: AsyncWrite + Send + Unpin>(
&'life0 mut self,
write: &'life1 mut W,
packet: &'life2 [u8],
settings: &'life3 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
W: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
write: &'life1 mut W,
packet: &'life2 [u8],
settings: &'life3 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
W: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Implementors
impl Transport for Simple
[src]
pub fn process_data<'life0, 'life1, 'life2, 'async_trait, R: AsyncRead + Send + Unpin>(
&'life0 mut self,
read: &'life1 mut R,
settings: &'life2 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
read: &'life1 mut R,
settings: &'life2 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn send_raw_packet<'life0, 'life1, 'life2, 'life3, 'async_trait, W: AsyncWrite + Send + Unpin>(
&'life0 mut self,
write: &'life1 mut W,
packet: &'life2 [u8],
settings: &'life3 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
W: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
write: &'life1 mut W,
packet: &'life2 [u8],
settings: &'life3 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
W: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
pub fn receive_raw_packet<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,