Struct snarkos_node_messages::Ping
source · pub struct Ping<N: Network> {
pub version: u32,
pub node_type: NodeType,
pub block_locators: Option<BlockLocators<N>>,
}
Fields§
§version: u32
§node_type: NodeType
§block_locators: Option<BlockLocators<N>>
Implementations§
Trait Implementations§
source§impl<N: Network> MessageTrait for Ping<N>
impl<N: Network> MessageTrait for Ping<N>
source§impl<N: PartialEq + Network> PartialEq<Ping<N>> for Ping<N>
impl<N: PartialEq + Network> PartialEq<Ping<N>> for Ping<N>
impl<N: Eq + Network> Eq for Ping<N>
impl<N: Network> StructuralEq for Ping<N>
impl<N: Network> StructuralPartialEq for Ping<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Ping<N>where <N as Network>::BlockHash: RefUnwindSafe,
impl<N> Send for Ping<N>
impl<N> Sync for Ping<N>
impl<N> Unpin for Ping<N>where <N as Network>::BlockHash: Unpin,
impl<N> UnwindSafe for Ping<N>where <N as Network>::BlockHash: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.