pub enum HandshakeNode {
Propose(VersionProposal),
Accept(Version, HandshakeNodeData),
Refuse(RefuseReason),
}
Variants§
Implementations§
Source§impl HandshakeNode
impl HandshakeNode
pub fn propose( magic: Magic, diffusion: DiffusionMode, versions: &[Version], ) -> Self
Trait Implementations§
Source§impl Clone for HandshakeNode
impl Clone for HandshakeNode
Source§fn clone(&self) -> HandshakeNode
fn clone(&self) -> HandshakeNode
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 HandshakeNode
impl Debug for HandshakeNode
Source§impl Decode for HandshakeNode
impl Decode for HandshakeNode
Source§impl<'_enum> From<&'_enum HandshakeNode> for HandshakeNodeKind
impl<'_enum> From<&'_enum HandshakeNode> for HandshakeNodeKind
Source§fn from(val: &'_enum HandshakeNode) -> HandshakeNodeKind
fn from(val: &'_enum HandshakeNode) -> HandshakeNodeKind
Converts to this type from the input type.
Source§impl From<HandshakeNode> for HandshakeNodeKind
impl From<HandshakeNode> for HandshakeNodeKind
Source§fn from(val: HandshakeNode) -> HandshakeNodeKind
fn from(val: HandshakeNode) -> HandshakeNodeKind
Converts to this type from the input type.
Source§impl PartialEq for HandshakeNode
impl PartialEq for HandshakeNode
impl Eq for HandshakeNode
impl StructuralPartialEq for HandshakeNode
Auto Trait Implementations§
impl Freeze for HandshakeNode
impl RefUnwindSafe for HandshakeNode
impl Send for HandshakeNode
impl Sync for HandshakeNode
impl Unpin for HandshakeNode
impl UnwindSafe for HandshakeNode
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