pub enum Opcode {
Continuation,
Text,
Binary,
Close,
Ping,
Pong,
Reserved(u8),
}Expand description
Opcode (RFC 6455 §5.2, S. 28-29) — 4-bit, definiert Interpretation
der Payload.
Spec-Werte:
- 0x0 — Continuation
- 0x1 — Text Frame (UTF-8)
- 0x2 — Binary Frame
- 0x3-0x7 — Reserved Non-Control
- 0x8 — Connection Close
- 0x9 — Ping
- 0xA — Pong
- 0xB-0xF — Reserved Control
Variants§
Continuation
0x0 — Continuation frame.
Text
0x1 — Text frame (UTF-8).
Binary
0x2 — Binary frame.
Close
0x8 — Connection-Close frame.
Ping
0x9 — Ping frame.
Pong
0xA — Pong frame.
Reserved(u8)
0x3-0x7 reserved non-control / 0xB-0xF reserved control.
Implementations§
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnsafeUnpin 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