Struct snarkos_node_messages::Disconnect
source · pub struct Disconnect {
pub reason: DisconnectReason,
}
Fields§
§reason: DisconnectReason
Trait Implementations§
source§impl Clone for Disconnect
impl Clone for Disconnect
source§fn clone(&self) -> Disconnect
fn clone(&self) -> Disconnect
Returns a copy 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 Disconnect
impl Debug for Disconnect
source§impl From<DisconnectReason> for Disconnect
impl From<DisconnectReason> for Disconnect
source§fn from(reason: DisconnectReason) -> Self
fn from(reason: DisconnectReason) -> Self
Converts to this type from the input type.
source§impl MessageTrait for Disconnect
impl MessageTrait for Disconnect
source§impl PartialEq<Disconnect> for Disconnect
impl PartialEq<Disconnect> for Disconnect
source§fn eq(&self, other: &Disconnect) -> bool
fn eq(&self, other: &Disconnect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Disconnect
impl StructuralEq for Disconnect
impl StructuralPartialEq for Disconnect
Auto Trait Implementations§
impl RefUnwindSafe for Disconnect
impl Send for Disconnect
impl Sync for Disconnect
impl Unpin for Disconnect
impl UnwindSafe for Disconnect
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.