pub trait AsyncBinaryReader:
AsyncBufReadExt
+ Unpin
+ Send {
// Required method
fn read_string<R>(
&mut self,
f: impl FnOnce(&str) -> R + Send,
) -> impl Future<Output = Result<R, DecodeError>> + Send;
}
Available on crate feature
tokio
only.Required Methods§
fn read_string<R>( &mut self, f: impl FnOnce(&str) -> R + Send, ) -> impl Future<Output = Result<R, DecodeError>> + Send
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.