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
A 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 WsMessageimpl UnwindSafe for WsMessageBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches 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