Trait BiReservation
pub trait BiReservation:
Send
+ Sync
+ 'static {
type SendStream: SendStream;
type RecvStream: RecvStream;
// Required method
fn open(
self,
) -> Result<(Self::SendStream, Self::RecvStream), ConnectionError>;
}Available on crate features
http-backend and http and std only.Expand description
Credit for one bidirectional stream, returned when dropped unopened.
Required Associated Types§
type SendStream: SendStream
type RecvStream: RecvStream
Required Methods§
fn open(self) -> Result<(Self::SendStream, Self::RecvStream), ConnectionError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".