pub enum MonitorEvent {
Connected(String),
Disconnected(String),
Finished(String),
RemoteError(String),
ClientError(String),
}Expand description
Monitor event types that can be returned by pop()
Variants§
Connected(String)
Connection event (when maskConnected(true) is set)
Disconnected(String)
Disconnection event (when maskDisconnected(true) is set)
Finished(String)
Finished event (when maskDisconnected(true) is set). Subscription has completed normally and no more events will ever be received.
RemoteError(String)
Remote error event from server
ClientError(String)
Standard client side error. Catchs std::exception for client side failures.
Trait Implementations§
Source§impl Clone for MonitorEvent
impl Clone for MonitorEvent
Source§fn clone(&self) -> MonitorEvent
fn clone(&self) -> MonitorEvent
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 MonitorEvent
impl Debug for MonitorEvent
Source§impl Display for MonitorEvent
impl Display for MonitorEvent
Source§impl Error for MonitorEvent
impl Error for MonitorEvent
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MonitorEvent
impl PartialEq for MonitorEvent
impl StructuralPartialEq for MonitorEvent
Auto Trait Implementations§
impl Freeze for MonitorEvent
impl RefUnwindSafe for MonitorEvent
impl Send for MonitorEvent
impl Sync for MonitorEvent
impl Unpin for MonitorEvent
impl UnsafeUnpin for MonitorEvent
impl UnwindSafe for MonitorEvent
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