pub enum StateResult {
CloseBackend,
CloseSession,
ConnectBackend,
Continue,
Upgrade,
}
Expand description
Signals transitions between states of a given Protocol
Variants§
CloseBackend
Signals to the Protocol to close its backend
CloseSession
Signals to the parent Session to close itself
ConnectBackend
Signals to the Protocol to connect to backend
Continue
Signals to the Protocol to continue
Upgrade
Signals to the parent Session to upgrade to the next Protocol
Trait Implementations§
Source§impl Debug for StateResult
impl Debug for StateResult
Source§impl PartialEq for StateResult
impl PartialEq for StateResult
impl Eq for StateResult
impl StructuralPartialEq for StateResult
Auto Trait Implementations§
impl Freeze for StateResult
impl RefUnwindSafe for StateResult
impl Send for StateResult
impl Sync for StateResult
impl Unpin for StateResult
impl UnwindSafe for StateResult
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.