#[non_exhaustive]pub struct Resubscribed {
pub id: SubscriptionId,
pub was_active: bool,
pub snapshot_restarting: bool,
}Expand description
One subscription re-created on a session that replaced a lost one.
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.id: SubscriptionIdWhich subscription — the same handle you have been holding all along.
was_active: boolWhether the server had confirmed this subscription before the session
was lost. false means it was still pending and never became active.
snapshot_restarting: boolWhether this subscription asked for a snapshot, and so restarts from a complete picture rather than resuming mid-flow.
If this is false, an application that discarded its state because of
a Continuity::Replaced has no way to rebuild it except by waiting
for every field to tick again. That is a property of the subscription,
not a failure.
Trait Implementations§
Source§impl Clone for Resubscribed
impl Clone for Resubscribed
Source§fn clone(&self) -> Resubscribed
fn clone(&self) -> Resubscribed
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 Resubscribed
Source§impl Debug for Resubscribed
impl Debug for Resubscribed
impl Eq for Resubscribed
Source§impl PartialEq for Resubscribed
impl PartialEq for Resubscribed
impl StructuralPartialEq for Resubscribed
Auto Trait Implementations§
impl Freeze for Resubscribed
impl RefUnwindSafe for Resubscribed
impl Send for Resubscribed
impl Sync for Resubscribed
impl Unpin for Resubscribed
impl UnsafeUnpin for Resubscribed
impl UnwindSafe for Resubscribed
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