pub trait HandshakeConnection {
type Error: Error + Send + Sync + 'static;
// Required methods
fn request<'a>(
&'a mut self,
method: &'static str,
params: Value,
) -> HandshakeFuture<'a, Value, Self::Error>;
fn notify<'a>(
&'a mut self,
method: &'static str,
) -> HandshakeFuture<'a, (), Self::Error>;
}Expand description
The request/notification subset the initialization state machine needs.
The full connection implements this seam; tests can use a scripted fake without a real process, network, clock, or runtime.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".