Struct snarkos_node_messages::BlockResponse
source · pub struct BlockResponse<N: Network> {
pub request: BlockRequest,
pub blocks: Data<DataBlocks<N>>,
}
Fields§
§request: BlockRequest
The original block request.
blocks: Data<DataBlocks<N>>
The blocks.
Trait Implementations§
source§impl<N: Clone + Network> Clone for BlockResponse<N>
impl<N: Clone + Network> Clone for BlockResponse<N>
source§fn clone(&self) -> BlockResponse<N>
fn clone(&self) -> BlockResponse<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 BlockResponse<N>
impl<N: Debug + Network> Debug for BlockResponse<N>
source§impl<N: Network> MessageTrait for BlockResponse<N>
impl<N: Network> MessageTrait for BlockResponse<N>
source§impl<N: PartialEq + Network> PartialEq<BlockResponse<N>> for BlockResponse<N>
impl<N: PartialEq + Network> PartialEq<BlockResponse<N>> for BlockResponse<N>
source§fn eq(&self, other: &BlockResponse<N>) -> bool
fn eq(&self, other: &BlockResponse<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<N: Eq + Network> Eq for BlockResponse<N>
impl<N: Network> StructuralEq for BlockResponse<N>
impl<N: Network> StructuralPartialEq for BlockResponse<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for BlockResponse<N>where N: RefUnwindSafe, <N as Network>::BlockHash: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe, <N as Network>::StateRoot: RefUnwindSafe, <N as Network>::TransactionID: RefUnwindSafe, <N as Network>::TransitionID: RefUnwindSafe,
impl<N> Send for BlockResponse<N>
impl<N> Sync for BlockResponse<N>
impl<N> Unpin for BlockResponse<N>where N: Unpin, <N as Network>::BlockHash: Unpin, <N as Environment>::Field: Unpin, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin, <N as Network>::StateRoot: Unpin, <N as Network>::TransactionID: Unpin, <N as Network>::TransitionID: Unpin,
impl<N> UnwindSafe for BlockResponse<N>where N: UnwindSafe, <N as Network>::BlockHash: UnwindSafe, <N as Environment>::Field: UnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Environment>::Scalar: UnwindSafe, <N as Network>::StateRoot: UnwindSafe, <N as Network>::TransactionID: UnwindSafe, <N as Network>::TransitionID: 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.