Struct VersionMismatch
pub struct VersionMismatch {
pub local: ProtocolVersion,
pub remote: ProtocolVersion,
}Expand description
Error returned when two peers’ protocol major versions differ.
Fields§
§local: ProtocolVersionThis endpoint’s protocol version.
remote: ProtocolVersionThe peer’s protocol version.
Trait Implementations§
§impl Clone for VersionMismatch
impl Clone for VersionMismatch
§fn clone(&self) -> VersionMismatch
fn clone(&self) -> VersionMismatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for VersionMismatch
impl Debug for VersionMismatch
§impl Display for VersionMismatch
impl Display for VersionMismatch
impl Eq for VersionMismatch
§impl Error for VersionMismatch
impl Error for VersionMismatch
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()
§impl PartialEq for VersionMismatch
impl PartialEq for VersionMismatch
impl StructuralPartialEq for VersionMismatch
Auto Trait Implementations§
impl Freeze for VersionMismatch
impl RefUnwindSafe for VersionMismatch
impl Send for VersionMismatch
impl Sync for VersionMismatch
impl Unpin for VersionMismatch
impl UnsafeUnpin for VersionMismatch
impl UnwindSafe for VersionMismatch
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