pub trait RpcTransport: Send + Sync {
// Required methods
fn send(&self, frame: SessionFrame);
fn on_frame(&self, listener: Arc<dyn Fn(SessionFrame) + Send + Sync>);
}Expand description
Wire-level transport. The tf-session crate will provide an adapter that implements this on top of SessionState; for tests we use an in-memory pair.
Required Methods§
fn send(&self, frame: SessionFrame)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".