Available on crate feature
websocket
only.Expand description
Message sent to and received from WebSocket.
Variants§
Trait Implementations§
source§impl PartialEq<Message> for Message
impl PartialEq<Message> for Message
source§impl Sink<Message> for WebSocket
impl Sink<Message> for WebSocket
§type Error = WebSocketError
type Error = WebSocketError
The type of value produced by the sink when an error occurs.
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, item: Message) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Message) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read more