pub enum Resumption {
Fresh,
Resumed {
from: Seq,
replayed: u64,
},
Reset {
from: Seq,
},
}Expand description
How a subscription was (re)established.
Variants§
Fresh
First connection: the client has nothing, so the frame carries the whole view.
Resumed
The client’s seq was still reachable: it gets a patch covering exactly the gap.
Reset
The gap was unreachable (log truncated, or a seq from another lifetime of the app): the
client is reset with a full frame. Honest, and counted separately.
Implementations§
Trait Implementations§
Source§impl Clone for Resumption
impl Clone for Resumption
Source§fn clone(&self) -> Resumption
fn clone(&self) -> Resumption
Returns a duplicate 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 Resumption
impl Debug for Resumption
Source§impl PartialEq for Resumption
impl PartialEq for Resumption
impl Copy for Resumption
impl Eq for Resumption
impl StructuralPartialEq for Resumption
Auto Trait Implementations§
impl Freeze for Resumption
impl RefUnwindSafe for Resumption
impl Send for Resumption
impl Sync for Resumption
impl Unpin for Resumption
impl UnwindSafe for Resumption
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