pub trait JmapStream:
Read
+ Write
+ Send
+ Any {
// Required method
fn as_any_mut(&mut self) -> &mut dyn Any;
}Available on crate feature
client only.Expand description
Erased stream the client can drive: auto-implemented for any blocking
Read + Write + Send + 'static. Send flows through the Box<dyn …> so
JmapClientStd can move between worker threads; Self::as_any_mut lets
specialized callers downcast back to the concrete stream.
Required Methods§
fn as_any_mut(&mut self) -> &mut dyn Any
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".