#[repr(u8)]pub enum DisconnectionType {
WillRetry = 0,
TryingRecovery = 1,
}Expand description
Represents the type of disconnection that occurred with the Lightstreamer Server.
This enum provides information about the disconnection state and what actions the client will take following the disconnection.
Variants§
WillRetry = 0
The client will automatically try to reconnect to the server.
TryingRecovery = 1
The client is attempting to recover the previous session. This happens when a temporary disconnection is detected and the client is trying to restore the previous session without losing subscriptions.
Trait Implementations§
Source§impl Clone for DisconnectionType
impl Clone for DisconnectionType
Source§fn clone(&self) -> DisconnectionType
fn clone(&self) -> DisconnectionType
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 DisconnectionType
Source§impl Debug for DisconnectionType
impl Debug for DisconnectionType
impl Eq for DisconnectionType
Source§impl Hash for DisconnectionType
impl Hash for DisconnectionType
Source§impl PartialEq for DisconnectionType
impl PartialEq for DisconnectionType
Source§fn eq(&self, other: &DisconnectionType) -> bool
fn eq(&self, other: &DisconnectionType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisconnectionType
Auto Trait Implementations§
impl Freeze for DisconnectionType
impl RefUnwindSafe for DisconnectionType
impl Send for DisconnectionType
impl Sync for DisconnectionType
impl Unpin for DisconnectionType
impl UnsafeUnpin for DisconnectionType
impl UnwindSafe for DisconnectionType
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