#[non_exhaustive]pub struct Connected {
pub connection_id: String,
pub user_id: Option<String>,
pub reconnected: bool,
pub recovery: bool,
}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.connection_id: String§user_id: Option<String>§reconnected: boolA connection made again after one was lost.
recovery: boolThe server keeps topic histories: missed messages are replayed.
Trait Implementations§
impl Eq for Connected
impl StructuralPartialEq for Connected
Auto Trait Implementations§
impl Forget for Connected
impl Freeze for Connected
impl Move for Connected
impl RefUnwindSafe for Connected
impl Send for Connected
impl Sync for Connected
impl Unpin for Connected
impl UnsafeUnpin for Connected
impl UnwindSafe for Connected
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