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
.