Struct solana_gossip::epoch_slots::EpochSlots
source · pub struct EpochSlots {
pub from: Pubkey,
pub slots: Vec<CompressedSlots>,
pub wallclock: u64,
}
Fields§
§from: Pubkey
§slots: Vec<CompressedSlots>
§wallclock: u64
Implementations§
source§impl EpochSlots
impl EpochSlots
pub fn new(from: Pubkey, now: u64) -> Self
pub fn fill(&mut self, slots: &[Slot], now: u64) -> usize
pub fn add(&mut self, slots: &[Slot]) -> usize
pub fn deflate(&mut self) -> Result<()>
pub fn max_compressed_slot_size(&self) -> isize
pub fn first_slot(&self) -> Option<Slot>
pub fn to_slots(&self, min_slot: Slot) -> Vec<Slot>
Trait Implementations§
source§impl AbiExample for EpochSlots
impl AbiExample for EpochSlots
source§impl Clone for EpochSlots
impl Clone for EpochSlots
source§fn clone(&self) -> EpochSlots
fn clone(&self) -> EpochSlots
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 EpochSlots
impl Debug for EpochSlots
source§impl Default for EpochSlots
impl Default for EpochSlots
source§fn default() -> EpochSlots
fn default() -> EpochSlots
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EpochSlots
impl<'de> Deserialize<'de> for EpochSlots
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for EpochSlots
impl PartialEq for EpochSlots
source§fn eq(&self, other: &EpochSlots) -> bool
fn eq(&self, other: &EpochSlots) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EpochSlots
impl Serialize for EpochSlots
impl Eq for EpochSlots
impl StructuralEq for EpochSlots
impl StructuralPartialEq for EpochSlots
Auto Trait Implementations§
impl RefUnwindSafe for EpochSlots
impl Send for EpochSlots
impl Sync for EpochSlots
impl Unpin for EpochSlots
impl UnwindSafe for EpochSlots
Blanket Implementations§
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request