pub enum IntermediaryAccept<Connection> {
Session(Connection),
CancellationForwarded,
}Expand description
Result of accepting either an ordinary session or an out-of-band request.
Variants§
Session(Connection)
A fully established, independently authenticated session pair.
CancellationForwarded
The resolved cancellation packet was rewritten and forwarded.
Implementations§
Source§impl<Connection> IntermediaryAccept<Connection>
impl<Connection> IntermediaryAccept<Connection>
Sourcepub fn into_session(self) -> Connection
pub fn into_session(self) -> Connection
Extracts the ordinary session branch.
§Panics
Panics when the accepted connection was cancellation-only.
Trait Implementations§
Auto Trait Implementations§
impl<Connection> Freeze for IntermediaryAccept<Connection>where
Connection: Freeze,
impl<Connection> RefUnwindSafe for IntermediaryAccept<Connection>where
Connection: RefUnwindSafe,
impl<Connection> Send for IntermediaryAccept<Connection>where
Connection: Send,
impl<Connection> Sync for IntermediaryAccept<Connection>where
Connection: Sync,
impl<Connection> Unpin for IntermediaryAccept<Connection>where
Connection: Unpin,
impl<Connection> UnsafeUnpin for IntermediaryAccept<Connection>where
Connection: UnsafeUnpin,
impl<Connection> UnwindSafe for IntermediaryAccept<Connection>where
Connection: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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