pub struct AsyncSimple { /* private fields */ }
Expand description
A simple transport.
Implementations§
Trait Implementations§
Source§impl Transport for Simple
impl Transport for Simple
fn process_data<'life0, 'life1, 'life2, 'async_trait, R>( &'life0 mut self, read: &'life1 mut R, settings: &'life2 Settings, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn send_raw_packet<'life0, 'life1, 'life2, 'life3, 'async_trait, W>(
&'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 + AsyncWrite + Send + Unpin,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn receive_raw_packet<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Simple
impl RefUnwindSafe for Simple
impl Send for Simple
impl Sync for Simple
impl Unpin for Simple
impl UnwindSafe for Simple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more