pub enum ProtocolNegotiationError {
ConnectionClosed,
InvalidRange(ProtocolsRange),
ProtocolMismatch(ProtocolsRange, ProtocolsRange),
BadChoice(u32),
TimedOut,
}
Expand description
What went wrong when negotiating a protocol.
Variants§
ConnectionClosed
InvalidRange(ProtocolsRange)
ProtocolMismatch(ProtocolsRange, ProtocolsRange)
BadChoice(u32)
TimedOut
Trait Implementations§
source§impl Debug for ProtocolNegotiationError
impl Debug for ProtocolNegotiationError
source§impl Display for ProtocolNegotiationError
impl Display for ProtocolNegotiationError
source§impl<PK: PublicKey> From<ProtocolNegotiationError> for IncomingError<PK>
impl<PK: PublicKey> From<ProtocolNegotiationError> for IncomingError<PK>
source§fn from(e: ProtocolNegotiationError) -> Self
fn from(e: ProtocolNegotiationError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProtocolNegotiationError
impl PartialEq for ProtocolNegotiationError
source§fn eq(&self, other: &ProtocolNegotiationError) -> bool
fn eq(&self, other: &ProtocolNegotiationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProtocolNegotiationError
impl StructuralPartialEq for ProtocolNegotiationError
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolNegotiationError
impl Send for ProtocolNegotiationError
impl Sync for ProtocolNegotiationError
impl Unpin for ProtocolNegotiationError
impl UnwindSafe for ProtocolNegotiationError
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
§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<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.