Skip to main content

JmapStream

Trait JmapStream 

Source
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§

Source

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".

Implementors§

Source§

impl<T: Read + Write + Send + Any> JmapStream for T