pub enum BadChallenge {
NotAChallenge {
len: usize,
tag: Option<u8>,
},
Version {
node: u16,
},
}Expand description
Why a node’s first frame is not a challenge this build can answer.
Variants§
NotAChallenge
Not a challenge at all: another tag, or a length no protocol’s
challenge has. len and tag are the payload’s, for the message.
Version
A challenge from a node speaking client protocol node, not
CLIENT_PROTOCOL_VERSION: a protocol-0 challenge (no version),
or a versioned one naming another.
Trait Implementations§
Source§impl Clone for BadChallenge
impl Clone for BadChallenge
impl Copy for BadChallenge
Source§impl Debug for BadChallenge
impl Debug for BadChallenge
impl Eq for BadChallenge
Source§impl PartialEq for BadChallenge
impl PartialEq for BadChallenge
impl StructuralPartialEq for BadChallenge
Auto Trait Implementations§
impl Freeze for BadChallenge
impl RefUnwindSafe for BadChallenge
impl Send for BadChallenge
impl Sync for BadChallenge
impl Unpin for BadChallenge
impl UnsafeUnpin for BadChallenge
impl UnwindSafe for BadChallenge
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