Enum async_graphql::http::WsMessage [−][src]
Expand description
An enum representing the various forms of a WebSocket message.
Variants
Text(String)A text WebSocket message
Tuple Fields of Text
0: StringA close message with the close frame.
Implementations
Returns the contained WsMessage::Text value, consuming the self value.
Because this function may panic, its use is generally discouraged.
Panics
Panics if the self value not equals WsMessage::Text.
Returns the contained WsMessage::Close value, consuming the self value.
Because this function may panic, its use is generally discouraged.
Panics
Panics if the self value not equals WsMessage::Close.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WsMessage
impl UnwindSafe for WsMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more