pub struct OpeningBiStream<T: PairSpec>(pub (T::SendStream, T::RecvStream));
Expand description
A dummy OpeningBiStream
type, that wraps a pair of streams and
implements session::stream::OpeningBi
trait.
Useful when implementing a driver that does not have a meaningful way to encode the intermediate “opening bidirectional stream” state, and provides a pair of fully opened streams right away. Those drivers can use this dummy type instead of implementing their own.
Tuple Fields§
§0: (T::SendStream, T::RecvStream)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OpeningBiStream<T>
impl<T> RefUnwindSafe for OpeningBiStream<T>
impl<T> Send for OpeningBiStream<T>
impl<T> Sync for OpeningBiStream<T>
impl<T> Unpin for OpeningBiStream<T>
impl<T> UnwindSafe for OpeningBiStream<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more