pub struct OpeningUniStream<T: SendSpec>(pub T::SendStream);
Expand description
A dummy OpeningUniStream
type, that wraps a send stream and implements
session::stream::OpeningUni
trait.
Useful when implementing a driver that does not have a meaningful way to encode the intermediate “opening unidirectional stream” state, and provides a fully opened stream right away. Those drivers can use this dummy type instead of implementing their own.
Tuple Fields§
§0: T::SendStream
Trait Implementations§
Source§impl<T: Debug + SendSpec> Debug for OpeningUniStream<T>where
T::SendStream: Debug,
impl<T: Debug + SendSpec> Debug for OpeningUniStream<T>where
T::SendStream: Debug,
Source§impl<T> OpeningUni for OpeningUniStream<T>where
T: SendSpec,
impl<T> OpeningUni for OpeningUniStream<T>where
T: SendSpec,
Auto Trait Implementations§
impl<T> Freeze for OpeningUniStream<T>
impl<T> RefUnwindSafe for OpeningUniStream<T>
impl<T> Send for OpeningUniStream<T>
impl<T> Sync for OpeningUniStream<T>
impl<T> Unpin for OpeningUniStream<T>
impl<T> UnwindSafe for OpeningUniStream<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