Struct snarkos_node_messages::BlockRequest
source · pub struct BlockRequest {
pub start_height: u32,
pub end_height: u32,
}
Fields§
§start_height: u32
The starting block height (inclusive).
end_height: u32
The ending block height (exclusive).
Trait Implementations§
source§impl Clone for BlockRequest
impl Clone for BlockRequest
source§fn clone(&self) -> BlockRequest
fn clone(&self) -> BlockRequest
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 BlockRequest
impl Debug for BlockRequest
source§impl Display for BlockRequest
impl Display for BlockRequest
source§impl Hash for BlockRequest
impl Hash for BlockRequest
source§impl MessageTrait for BlockRequest
impl MessageTrait for BlockRequest
source§impl PartialEq<BlockRequest> for BlockRequest
impl PartialEq<BlockRequest> for BlockRequest
source§fn eq(&self, other: &BlockRequest) -> bool
fn eq(&self, other: &BlockRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockRequest
impl Eq for BlockRequest
impl StructuralEq for BlockRequest
impl StructuralPartialEq for BlockRequest
Auto Trait Implementations§
impl RefUnwindSafe for BlockRequest
impl Send for BlockRequest
impl Sync for BlockRequest
impl Unpin for BlockRequest
impl UnwindSafe for BlockRequest
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.