#[non_exhaustive]pub struct Disconnected {
pub code: Option<u16>,
pub reason: String,
pub retry_in: Duration,
pub attempt: u32,
}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.code: Option<u16>The close code; None when the connection was cut or never made.
reason: String§retry_in: DurationWhen the next attempt is made.
attempt: u32Attempts made since the last connection the server took.
Trait Implementations§
Source§impl Clone for Disconnected
impl Clone for Disconnected
Source§impl Debug for Disconnected
impl Debug for Disconnected
impl Eq for Disconnected
Source§impl PartialEq for Disconnected
impl PartialEq for Disconnected
impl StructuralPartialEq for Disconnected
Auto Trait Implementations§
impl Forget for Disconnected
impl Freeze for Disconnected
impl Move for Disconnected
impl RefUnwindSafe for Disconnected
impl Send for Disconnected
impl Sync for Disconnected
impl Unpin for Disconnected
impl UnsafeUnpin for Disconnected
impl UnwindSafe for Disconnected
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