pub enum NegotiationError {
FidConflict {
fid: u16,
name1: String,
name2: String,
},
TypeMismatch {
fid: u16,
expected: TypeTag,
found: TypeTag,
},
UnsupportedFeature {
feature: String,
},
ProtocolVersionMismatch {
local: u8,
remote: u8,
},
InvalidState {
current: NegotiationState,
expected: NegotiationState,
},
}Expand description
Error type for negotiation operations
Variants§
FidConflict
FID conflict detected
TypeMismatch
Type mismatch detected
Fields
UnsupportedFeature
Unsupported feature requested
ProtocolVersionMismatch
Protocol version mismatch
InvalidState
Invalid state transition
Trait Implementations§
Source§impl Clone for NegotiationError
impl Clone for NegotiationError
Source§fn clone(&self) -> NegotiationError
fn clone(&self) -> NegotiationError
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 NegotiationError
impl Debug for NegotiationError
Source§impl Display for NegotiationError
impl Display for NegotiationError
Source§impl Error for NegotiationError
impl Error for NegotiationError
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 PartialEq for NegotiationError
impl PartialEq for NegotiationError
impl StructuralPartialEq for NegotiationError
Auto Trait Implementations§
impl Freeze for NegotiationError
impl RefUnwindSafe for NegotiationError
impl Send for NegotiationError
impl Sync for NegotiationError
impl Unpin for NegotiationError
impl UnwindSafe for NegotiationError
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