pub trait SessionHandler: Send + 'static {
// Required method
fn deliver(&mut self, envelope: Envelope) -> impl Future<Output = ()> + Send;
// Provided method
fn stream_closed(
&mut self,
_operation: ClientOperationId,
) -> impl Future<Output = ()> + Send { ... }
}Required Methods§
Provided Methods§
fn stream_closed( &mut self, _operation: ClientOperationId, ) -> impl Future<Output = ()> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".