Struct bitcoin::p2p::message_filter::GetCFilters
source · pub struct GetCFilters {
pub filter_type: u8,
pub start_height: u32,
pub stop_hash: BlockHash,
}
Expand description
getcfilters message
Fields§
§filter_type: u8
Filter type for which headers are requested
start_height: u32
The height of the first block in the requested range
stop_hash: BlockHash
The hash of the last block in the requested range
Trait Implementations§
source§impl Clone for GetCFilters
impl Clone for GetCFilters
source§fn clone(&self) -> GetCFilters
fn clone(&self) -> GetCFilters
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 GetCFilters
impl Debug for GetCFilters
source§impl Decodable for GetCFilters
impl Decodable for GetCFilters
source§fn consensus_decode_from_finite_reader<R: Read + ?Sized>(
r: &mut R
) -> Result<GetCFilters, Error>
fn consensus_decode_from_finite_reader<R: Read + ?Sized>( r: &mut R ) -> Result<GetCFilters, Error>
Decode
Self
from a size-limited reader. Read moresource§fn consensus_decode<R: Read + ?Sized>(r: &mut R) -> Result<GetCFilters, Error>
fn consensus_decode<R: Read + ?Sized>(r: &mut R) -> Result<GetCFilters, Error>
Decode an object with a well-defined format. Read more
source§impl Encodable for GetCFilters
impl Encodable for GetCFilters
source§impl PartialEq<GetCFilters> for GetCFilters
impl PartialEq<GetCFilters> for GetCFilters
source§fn eq(&self, other: &GetCFilters) -> bool
fn eq(&self, other: &GetCFilters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GetCFilters
impl StructuralEq for GetCFilters
impl StructuralPartialEq for GetCFilters
Auto Trait Implementations§
impl RefUnwindSafe for GetCFilters
impl Send for GetCFilters
impl Sync for GetCFilters
impl Unpin for GetCFilters
impl UnwindSafe for GetCFilters
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