pub struct BackfillCount {
pub fetched: usize,
pub new_messages: usize,
}Expand description
What one catch-up page cost and what it yielded.
fetched is the relay’s answer — zero means there is genuinely nothing
further back, which is the only sound “reached the start” signal.
new_messages counts what this client had never seen, which is what a UI
reports; a page of entirely-known history is 0 new with a non-empty fetch.
Fields§
§fetched: usize§new_messages: usizeTrait Implementations§
Source§impl Clone for BackfillCount
impl Clone for BackfillCount
Source§fn clone(&self) -> BackfillCount
fn clone(&self) -> BackfillCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackfillCount
Source§impl Debug for BackfillCount
impl Debug for BackfillCount
Source§impl Default for BackfillCount
impl Default for BackfillCount
Source§fn default() -> BackfillCount
fn default() -> BackfillCount
Returns the “default value” for a type. Read more
impl Eq for BackfillCount
Source§impl PartialEq for BackfillCount
impl PartialEq for BackfillCount
impl StructuralPartialEq for BackfillCount
Auto Trait Implementations§
impl Freeze for BackfillCount
impl RefUnwindSafe for BackfillCount
impl Send for BackfillCount
impl Sync for BackfillCount
impl Unpin for BackfillCount
impl UnsafeUnpin for BackfillCount
impl UnwindSafe for BackfillCount
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more