pub trait NetBenchSendStream: Send {
// Required methods
fn write_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn finish(&mut self) -> Result<()>;
fn cancel(&mut self);
// Provided method
fn write<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Sending half of one host-routed reliable stream.
Required Methods§
Sourcefn write_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Writes the complete buffer.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".