Enum websocket_util::subscribe::Classification
source · pub enum Classification<U, C> {
UserMessage(U),
ControlMessage(C),
}
Expand description
An enum for the possible classifications of a message.
Variants§
UserMessage(U)
A user message. When classified as such, the message is directly
emitted by the MessageStream
and the associated
Subscription
is not informed.
ControlMessage(C)
A control message. Such a message is forwarded to the
Subscription
. It is never emitted by the MessageStream
.
Trait Implementations§
Auto Trait Implementations§
impl<U, C> RefUnwindSafe for Classification<U, C>where C: RefUnwindSafe, U: RefUnwindSafe,
impl<U, C> Send for Classification<U, C>where C: Send, U: Send,
impl<U, C> Sync for Classification<U, C>where C: Sync, U: Sync,
impl<U, C> Unpin for Classification<U, C>where C: Unpin, U: Unpin,
impl<U, C> UnwindSafe for Classification<U, C>where C: UnwindSafe, U: UnwindSafe,
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