Struct RetentionGap
#[non_exhaustive]pub struct RetentionGap {
pub phase: Phase,
pub floor: Option<EventId>,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.phase: PhaseThe phase whose failure stated Reseed:
Phase::Pull or Phase::Push, the far side’s own phases, and
Phase::Pull for every peer this crate ships.
floor: Option<EventId>The far side’s
retention_floor when it
refused: the newest event it has forgotten. None if it refused
without declaring one, which is still a gap and is still reported.
Implementations§
Trait Implementations§
§impl Clone for RetentionGap
impl Clone for RetentionGap
impl Copy for RetentionGap
§impl Debug for RetentionGap
impl Debug for RetentionGap
§impl Display for RetentionGap
impl Display for RetentionGap
impl Eq for RetentionGap
§impl Hash for RetentionGap
impl Hash for RetentionGap
§impl PartialEq for RetentionGap
impl PartialEq for RetentionGap
impl StructuralPartialEq for RetentionGap
Auto Trait Implementations§
impl Freeze for RetentionGap
impl RefUnwindSafe for RetentionGap
impl Send for RetentionGap
impl Sync for RetentionGap
impl Unpin for RetentionGap
impl UnsafeUnpin for RetentionGap
impl UnwindSafe for RetentionGap
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