pub enum NegotiateError {
NoCommonVersion,
UnsupportedRequiredCapability(u64),
IncomparableGuarantee {
dimension: &'static str,
},
GuaranteeNotOffered {
peers_requirement: bool,
},
}Expand description
Why negotiation failed.
Variants§
NoCommonVersion
The version sets do not intersect.
UnsupportedRequiredCapability(u64)
The peer requires a capability this implementation does not support.
IncomparableGuarantee
An unordered dimension was declared differently by the two sides, so there is no weaker of the two to take.
GuaranteeNotOffered
The effective set does not reach what one side requires. There is no downgrade path: the handshake fails instead (decisions/0006 §4.4).
Trait Implementations§
Source§impl Clone for NegotiateError
impl Clone for NegotiateError
impl Copy for NegotiateError
Source§impl Debug for NegotiateError
impl Debug for NegotiateError
Source§impl Display for NegotiateError
impl Display for NegotiateError
impl Eq for NegotiateError
Source§impl Error for NegotiateError
impl Error for NegotiateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NegotiateError> for Error
impl From<NegotiateError> for Error
Source§fn from(e: NegotiateError) -> Error
fn from(e: NegotiateError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for NegotiateError
impl PartialEq for NegotiateError
impl StructuralPartialEq for NegotiateError
Auto Trait Implementations§
impl Freeze for NegotiateError
impl RefUnwindSafe for NegotiateError
impl Send for NegotiateError
impl Sync for NegotiateError
impl Unpin for NegotiateError
impl UnsafeUnpin for NegotiateError
impl UnwindSafe for NegotiateError
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