Struct snarkos_node_messages::PuzzleResponse
source · pub struct PuzzleResponse<N: Network> {
pub epoch_challenge: EpochChallenge<N>,
pub block_header: Data<Header<N>>,
}
Fields§
§epoch_challenge: EpochChallenge<N>
§block_header: Data<Header<N>>
Trait Implementations§
source§impl<N: Clone + Network> Clone for PuzzleResponse<N>
impl<N: Clone + Network> Clone for PuzzleResponse<N>
source§fn clone(&self) -> PuzzleResponse<N>
fn clone(&self) -> PuzzleResponse<N>
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<N: Debug + Network> Debug for PuzzleResponse<N>
impl<N: Debug + Network> Debug for PuzzleResponse<N>
source§impl<N: Network> MessageTrait for PuzzleResponse<N>
impl<N: Network> MessageTrait for PuzzleResponse<N>
source§impl<N: PartialEq + Network> PartialEq<PuzzleResponse<N>> for PuzzleResponse<N>
impl<N: PartialEq + Network> PartialEq<PuzzleResponse<N>> for PuzzleResponse<N>
source§fn eq(&self, other: &PuzzleResponse<N>) -> bool
fn eq(&self, other: &PuzzleResponse<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<N: Eq + Network> Eq for PuzzleResponse<N>
impl<N: Network> StructuralEq for PuzzleResponse<N>
impl<N: Network> StructuralPartialEq for PuzzleResponse<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for PuzzleResponse<N>where N: RefUnwindSafe, <N as Network>::BlockHash: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for PuzzleResponse<N>
impl<N> Sync for PuzzleResponse<N>
impl<N> Unpin for PuzzleResponse<N>where N: Unpin, <N as Network>::BlockHash: Unpin, <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for PuzzleResponse<N>where N: UnwindSafe, <N as Network>::BlockHash: UnwindSafe, <N as Environment>::Field: 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.