Trait cubic_protocol::packet::OutputPacketBytes
source · [−]pub trait OutputPacketBytes: Send + Sync {
fn write_byte<'life0, 'async_trait>(
&'life0 mut self,
byte: u8
) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn write_bytes<'life0, 'life1, 'async_trait>(
&'life0 mut self,
slice: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}