pub enum ProtocolKind {
Mandatory,
Optional,
}Expand description
Whether a protocol is required for handshake / discovery to consider a peer compatible.
Variants§
Mandatory
Peers must speak this protocol. Handshake fails if absent. Discovery filters out peers whose bloom doesn’t cover it.
Optional
Nice-to-have. Discovery prefers peers with overlap but accepts peers without it. The default for app protocols.
Trait Implementations§
Source§impl Clone for ProtocolKind
impl Clone for ProtocolKind
Source§fn clone(&self) -> ProtocolKind
fn clone(&self) -> ProtocolKind
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 ProtocolKind
impl Debug for ProtocolKind
Source§impl PartialEq for ProtocolKind
impl PartialEq for ProtocolKind
impl Copy for ProtocolKind
impl Eq for ProtocolKind
impl StructuralPartialEq for ProtocolKind
Auto Trait Implementations§
impl Freeze for ProtocolKind
impl RefUnwindSafe for ProtocolKind
impl Send for ProtocolKind
impl Sync for ProtocolKind
impl Unpin for ProtocolKind
impl UnsafeUnpin for ProtocolKind
impl UnwindSafe for ProtocolKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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