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