Trait StreamGates
pub trait StreamGates:
Send
+ Sync
+ 'static {
type Gate: StreamGate;
// Required method
fn open(&self, stream: GatedStream) -> Option<Self::Gate>;
}Available on crate feature
net only.Expand description
Opens the gates of a multiplexed connection’s streams.
Required Associated Types§
type Gate: StreamGate
type Gate: StreamGate
The gate of one stream direction.
Required Methods§
fn open(&self, stream: GatedStream) -> Option<Self::Gate>
fn open(&self, stream: GatedStream) -> Option<Self::Gate>
The gate for stream, or None to leave it ungated.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".