Enum actix_http::ws::OpCode
source · pub enum OpCode {
Continue,
Text,
Binary,
Close,
Ping,
Pong,
Bad,
}
Expand description
Operation codes defined in [RFC 6455 §11.8].
Variants§
Continue
Indicates a continuation frame of a fragmented message.
Text
Indicates a text data frame.
Binary
Indicates a binary data frame.
Close
Indicates a close control frame.
Ping
Indicates a ping control frame.
Pong
Indicates a pong control frame.
Bad
Indicates an invalid opcode was received.
Trait Implementations§
source§impl From<OpCode> for ProtocolError
impl From<OpCode> for ProtocolError
source§fn from(original: OpCode) -> ProtocolError
fn from(original: OpCode) -> ProtocolError
Converts to this type from the input type.
source§impl PartialEq<OpCode> for OpCode
impl PartialEq<OpCode> for OpCode
impl Copy for OpCode
impl Eq for OpCode
impl StructuralEq for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.