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
sourceimpl 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
sourceimpl AbiExample for EpochSlots
impl AbiExample for EpochSlots
sourceimpl Clone for EpochSlots
impl Clone for EpochSlots
sourcefn clone(&self) -> EpochSlots
fn clone(&self) -> EpochSlots
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 moresourceimpl Debug for EpochSlots
impl Debug for EpochSlots
sourceimpl Default for EpochSlots
impl Default for EpochSlots
sourcefn default() -> EpochSlots
fn default() -> EpochSlots
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EpochSlots
impl<'de> Deserialize<'de> for EpochSlots
sourcefn 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
sourceimpl PartialEq<EpochSlots> for EpochSlots
impl PartialEq<EpochSlots> for EpochSlots
sourcefn eq(&self, other: &EpochSlots) -> bool
fn eq(&self, other: &EpochSlots) -> bool
sourceimpl 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
sourceimpl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request