pub struct Typed<S> { /* private fields */ }
Expand description
Wrapper for a session capable of opening streams prefixed with a u32
type
id.
Implementations§
Trait Implementations§
Source§impl<S> TypedAccept for Typed<S>
impl<S> TypedAccept for Typed<S>
Source§impl<S> TypedOpenClose for Typed<S>
impl<S> TypedOpenClose for Typed<S>
Source§fn open_typed<'life0, 'async_trait>(
&'life0 mut self,
typ: StreamType,
) -> Pin<Box<dyn Future<Output = Result<TypedStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_typed<'life0, 'async_trait>(
&'life0 mut self,
typ: StreamType,
) -> Pin<Box<dyn Future<Output = Result<TypedStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a typed stream with the given type.
Source§impl<S> TypedSession for Typed<S>
impl<S> TypedSession for Typed<S>
Source§type TypedAccept = Typed<<S as Session>::Accept>
type TypedAccept = Typed<<S as Session>::Accept>
The component implementing TypedAccept.
Source§fn split_typed(self) -> (Self::TypedOpen, Self::TypedAccept)
fn split_typed(self) -> (Self::TypedOpen, Self::TypedAccept)
Split the typed session into open/accept components.
Auto Trait Implementations§
impl<S> Freeze for Typed<S>where
S: Freeze,
impl<S> RefUnwindSafe for Typed<S>where
S: RefUnwindSafe,
impl<S> Send for Typed<S>where
S: Send,
impl<S> Sync for Typed<S>where
S: Sync,
impl<S> Unpin for Typed<S>where
S: Unpin,
impl<S> UnwindSafe for Typed<S>where
S: UnwindSafe,
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