pub struct GossipTimestampFilter {
pub chain_hash: BlockHash,
pub first_timestamp: u32,
pub timestamp_range: u32,
}
Expand description
A gossip_timestamp_filter message is used by a node to request gossip relay for messages in the requested time range when the gossip_queries feature has been negotiated.
Fields
chain_hash: BlockHash
The genesis hash of the blockchain for channel and node information
first_timestamp: u32
The starting unix timestamp
timestamp_range: u32
The range of information in seconds
Trait Implementations
sourceimpl Clone for GossipTimestampFilter
impl Clone for GossipTimestampFilter
sourcefn clone(&self) -> GossipTimestampFilter
fn clone(&self) -> GossipTimestampFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GossipTimestampFilter
impl Debug for GossipTimestampFilter
sourceimpl PartialEq<GossipTimestampFilter> for GossipTimestampFilter
impl PartialEq<GossipTimestampFilter> for GossipTimestampFilter
sourcefn eq(&self, other: &GossipTimestampFilter) -> bool
fn eq(&self, other: &GossipTimestampFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GossipTimestampFilter) -> bool
fn ne(&self, other: &GossipTimestampFilter) -> bool
This method tests for !=
.
sourceimpl Readable for GossipTimestampFilter
impl Readable for GossipTimestampFilter
sourceimpl Writeable for GossipTimestampFilter
impl Writeable for GossipTimestampFilter
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for GossipTimestampFilter
Auto Trait Implementations
impl RefUnwindSafe for GossipTimestampFilter
impl Send for GossipTimestampFilter
impl Sync for GossipTimestampFilter
impl Unpin for GossipTimestampFilter
impl UnwindSafe for GossipTimestampFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more