Enum libp2p::websocket::framed::OutgoingData [−][src]
Expand description
Data sent over the websocket connection.
Variants
Send some bytes.
Send a PING message.
Send an unsolicited PONG message. (Incoming PINGs are answered automatically.)
Trait Implementations
impl<T> Sink<OutgoingData> for Connection<T> where
T: 'static + AsyncRead + AsyncWrite + Send + Unpin,
impl<T> Sink<OutgoingData> for Connection<T> where
T: 'static + AsyncRead + AsyncWrite + Send + Unpin,
pub fn poll_ready(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
pub fn poll_ready(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
Attempts to prepare the Sink
to receive a value. Read more
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
pub fn poll_flush(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
pub fn poll_flush(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
Flush any remaining output from this sink. Read more
pub fn poll_close(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
pub fn poll_close(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
Flush any remaining output and close this sink, if necessary. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutgoingData
impl Send for OutgoingData
impl Sync for OutgoingData
impl Unpin for OutgoingData
impl UnwindSafe for OutgoingData
Blanket Implementations
Mutably borrows from an owned value. Read more