pub struct VersionMismatch {
pub ours: (u16, u16),
pub theirs: (u16, u16),
}Expand description
The peer speaks a different major version.
Fields§
§ours: (u16, u16)§theirs: (u16, u16)What the peer sent.
Trait Implementations§
Source§impl Clone for VersionMismatch
impl Clone for VersionMismatch
impl Copy for VersionMismatch
Source§impl Debug for VersionMismatch
impl Debug for VersionMismatch
Source§impl Display for VersionMismatch
impl Display for VersionMismatch
impl Eq for VersionMismatch
Source§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()
Source§impl From<VersionMismatch> for ProtocolError
impl From<VersionMismatch> for ProtocolError
Source§fn from(source: VersionMismatch) -> Self
fn from(source: VersionMismatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VersionMismatch
impl PartialEq for VersionMismatch
impl StructuralPartialEq for VersionMismatch
Auto Trait Implementations§
impl Forget for VersionMismatch
impl Freeze for VersionMismatch
impl Move 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