Struct axum::ws::WebSocket [−][src]
pub struct WebSocket { /* fields omitted */ }
This is supported on crate feature
ws
only.Expand description
A stream of websocket messages.
Implementations
Receive another message.
Returns None
is stream has closed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WebSocket
impl !UnwindSafe for WebSocket
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
type Output = T
type Output = T
Should always be Self