pub trait StreamEncoder: DataParseable {
// Provided methods
fn encode<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn decode<'async_trait>(
encoded: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn decode_raw<'async_trait>(
encoded: Vec<u8>,
) -> Pin<Box<dyn Future<Output = StreamData<Self>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn data_parser() -> DataParser { ... }
}
Provided Methods§
fn encode<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decode<'async_trait>(
encoded: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn decode_raw<'async_trait>(
encoded: Vec<u8>,
) -> Pin<Box<dyn Future<Output = StreamData<Self>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn data_parser() -> DataParser
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.