pub enum ConnectionStatus {
Connected,
Reconnected,
Disconnected,
ConnectionError(PubNubError),
DisconnectedUnexpectedly(PubNubError),
SubscriptionChanged {
channels: Option<Vec<String>>,
channel_groups: Option<Vec<String>>,
},
}Expand description
Subscription statuses.
Variants§
Connected
Successfully connected and receiving real-time updates.
Reconnected
Successfully reconnected after real-time updates received has been stopped.
Disconnected
Real-time updates receive stopped.
ConnectionError(PubNubError)
Connection attempt failed.
DisconnectedUnexpectedly(PubNubError)
Unexpected disconnection.
SubscriptionChanged
List of channels and groups changed in subscription.
Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
Source§fn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
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 ConnectionStatus
impl Debug for ConnectionStatus
Source§impl PartialEq for ConnectionStatus
impl PartialEq for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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