pub enum InboundFrame {
Text(String),
Ignore,
Close,
}Expand description
Classification of an inbound WS frame for a typical text-JSON protocol.
Variants§
Text(String)
A text frame — the app should parse/route this.
Ignore
Ping/pong/binary — not part of the app protocol, keep reading.
Close
The client closed the connection — the read loop should stop.
Trait Implementations§
Source§impl Clone for InboundFrame
impl Clone for InboundFrame
Source§fn clone(&self) -> InboundFrame
fn clone(&self) -> InboundFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InboundFrame
impl Debug for InboundFrame
impl Eq for InboundFrame
Source§impl PartialEq for InboundFrame
impl PartialEq for InboundFrame
impl StructuralPartialEq for InboundFrame
Auto Trait Implementations§
impl Freeze for InboundFrame
impl RefUnwindSafe for InboundFrame
impl Send for InboundFrame
impl Sync for InboundFrame
impl Unpin for InboundFrame
impl UnsafeUnpin for InboundFrame
impl UnwindSafe for InboundFrame
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