Enum websocket_util::subscribe::Classification [−][src]
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
