#[repr(u8)]pub enum StartProtocolDiscriminants {
StartSession = 0,
SessionEstablished = 1,
SessionError = 2,
KeepAlive = 3,
}
Variants§
StartSession = 0
Request to initiate a new session.
SessionEstablished = 1
Confirmation that a new session has been established by the counterparty.
SessionError = 2
Counterparty could not establish a new session due to an error.
KeepAlive = 3
A ping message to keep the session alive.
Implementations§
Trait Implementations§
Source§impl Clone for StartProtocolDiscriminants
impl Clone for StartProtocolDiscriminants
Source§fn clone(&self) -> StartProtocolDiscriminants
fn clone(&self) -> StartProtocolDiscriminants
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StartProtocolDiscriminants
impl Debug for StartProtocolDiscriminants
Source§impl<'_enum, I, T, C> From<&'_enum StartProtocol<I, T, C>> for StartProtocolDiscriminants
impl<'_enum, I, T, C> From<&'_enum StartProtocol<I, T, C>> for StartProtocolDiscriminants
Source§fn from(val: &'_enum StartProtocol<I, T, C>) -> StartProtocolDiscriminants
fn from(val: &'_enum StartProtocol<I, T, C>) -> StartProtocolDiscriminants
Converts to this type from the input type.
Source§impl<I, T, C> From<StartProtocol<I, T, C>> for StartProtocolDiscriminants
impl<I, T, C> From<StartProtocol<I, T, C>> for StartProtocolDiscriminants
Source§fn from(val: StartProtocol<I, T, C>) -> StartProtocolDiscriminants
fn from(val: StartProtocol<I, T, C>) -> StartProtocolDiscriminants
Converts to this type from the input type.
impl Copy for StartProtocolDiscriminants
impl Eq for StartProtocolDiscriminants
impl StructuralPartialEq for StartProtocolDiscriminants
Auto Trait Implementations§
impl Freeze for StartProtocolDiscriminants
impl RefUnwindSafe for StartProtocolDiscriminants
impl Send for StartProtocolDiscriminants
impl Sync for StartProtocolDiscriminants
impl Unpin for StartProtocolDiscriminants
impl UnwindSafe for StartProtocolDiscriminants
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more