pub enum WsNotifyChannelEvent {
Error(Error),
Close(Option<CloseFrame<'static>>),
Open,
Notify(NotificationMessage),
}
Expand description
Events to monitor on a WebSocket notification channel.
Variants
Error(Error)
An error took place in the WebSocket notification channel.
Close(Option<CloseFrame<'static>>)
The underlying WebSocket connection has been closed, and thus the notification channel itself too. It may contain the returned close code and reason.
Open
WebSocket notification channel successfully open and ready to send notifications.
Notify(NotificationMessage)
New incoming notification.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WsNotifyChannelEvent
impl Send for WsNotifyChannelEvent
impl Sync for WsNotifyChannelEvent
impl Unpin for WsNotifyChannelEvent
impl !UnwindSafe for WsNotifyChannelEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more