pub trait Host: Send {
// Required method
fn write_via_stream(
&mut self,
data: StreamReader<u8>,
) -> impl Future<Output = Result<FutureReader<Result<(), ErrorCode>>>> + Send;
}Required Methods§
Sourcefn write_via_stream(
&mut self,
data: StreamReader<u8>,
) -> impl Future<Output = Result<FutureReader<Result<(), ErrorCode>>>> + Send
fn write_via_stream( &mut self, data: StreamReader<u8>, ) -> impl Future<Output = Result<FutureReader<Result<(), ErrorCode>>>> + Send
Write the given stream to stderr.
If the stream’s writable end is dropped this function will either return success once the entire contents of the stream have been written or an error-code representing a failure.
Otherwise if there is an error the readable end of the stream will be dropped and this function will return an error-code.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<_T: Host + ?Sized + Send> Host for &mut _T
impl<_T: Host + ?Sized + Send> Host for &mut _T
Source§fn write_via_stream(
&mut self,
data: StreamReader<u8>,
) -> impl Future<Output = Result<FutureReader<Result<(), ErrorCode>>>> + Send
fn write_via_stream( &mut self, data: StreamReader<u8>, ) -> impl Future<Output = Result<FutureReader<Result<(), ErrorCode>>>> + Send
Write the given stream to stderr.
If the stream’s writable end is dropped this function will either return success once the entire contents of the stream have been written or an error-code representing a failure.
Otherwise if there is an error the readable end of the stream will be dropped and this function will return an error-code.