Struct Resumed
#[non_exhaustive]pub struct Resumed {
pub entries: Vec<RelayedEntry>,
pub lost: Option<Lost>,
pub next: Cursor,
}Expand description
What a relay read found (Relay::resume).
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.entries: Vec<RelayedEntry>The relayable entries after the reader’s cursor, oldest first.
lost: Option<Lost>Whether the reader missed entries before these: it rebuilds what it follows from the current state (a resync), then applies them.
next: CursorWhere the reader resumes next time.
Implementations§
Trait Implementations§
impl Eq for Resumed
impl StructuralPartialEq for Resumed
Auto Trait Implementations§
impl Freeze for Resumed
impl RefUnwindSafe for Resumed
impl Send for Resumed
impl Sync for Resumed
impl Unpin for Resumed
impl UnsafeUnpin for Resumed
impl UnwindSafe for Resumed
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