Enum parity_ws::OpCode [−][src]
pub enum OpCode {
Continue,
Text,
Binary,
Close,
Ping,
Pong,
Bad,
}Expand description
Operation codes as part of rfc6455.
Variants
Indicates a continuation frame of a fragmented message.
Indicates a text data frame.
Indicates a binary data frame.
Indicates a close control frame.
Indicates a ping control frame.
Indicates a pong control frame.
Indicates an invalid opcode was received.
Implementations
Test whether the opcode indicates a control frame.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpCodeimpl UnwindSafe for OpCodeBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V