Enum libp2p_websocket::framed::OutgoingData
source · Expand description
Data sent over the websocket connection.
Variants§
Binary(Vec<u8>)
Send some bytes.
Ping(Vec<u8>)
Send a PING message.
Pong(Vec<u8>)
Send an unsolicited PONG message. (Incoming PINGs are answered automatically.)
Trait Implementations§
source§impl Clone for OutgoingData
impl Clone for OutgoingData
source§fn clone(&self) -> OutgoingData
fn clone(&self) -> OutgoingData
Returns a copy of the value. Read more
1.0.0 · 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 OutgoingData
impl Debug for OutgoingData
source§impl<T> Sink<OutgoingData> for Connection<T>where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
impl<T> Sink<OutgoingData> for Connection<T>where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
source§fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to prepare the
Sink
to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, item: OutgoingData) -> Result<()>
fn start_send(self: Pin<&mut Self>, item: OutgoingData) -> Result<()>
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