pub enum HandshakeResult {
Match,
VersionMismatch {
local_version: String,
remote_version: String,
local_hash: [u8; 32],
remote_hash: [u8; 32],
},
}Expand description
Result of comparing two handshakes.
Variants§
Trait Implementations§
Source§impl Clone for HandshakeResult
impl Clone for HandshakeResult
Source§fn clone(&self) -> HandshakeResult
fn clone(&self) -> HandshakeResult
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 moreSource§impl Debug for HandshakeResult
impl Debug for HandshakeResult
Source§impl PartialEq for HandshakeResult
impl PartialEq for HandshakeResult
impl StructuralPartialEq for HandshakeResult
Auto Trait Implementations§
impl Freeze for HandshakeResult
impl RefUnwindSafe for HandshakeResult
impl Send for HandshakeResult
impl Sync for HandshakeResult
impl Unpin for HandshakeResult
impl UnsafeUnpin for HandshakeResult
impl UnwindSafe for HandshakeResult
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