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: AsyncRead + AsyncWrite + Send + Unpin + 'static, [src]
impl<T> Sink<OutgoingData> for Connection<T> where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static, [src]pub fn poll_ready(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>[src]
pub fn poll_ready(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>[src]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>>[src]
pub fn poll_flush(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>[src]Flush any remaining output from this sink. Read more
pub fn poll_close(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>[src]
pub fn poll_close(
self: Pin<&mut Connection<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>[src]Flush any remaining output and close this sink, if necessary. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutgoingDataimpl Send for OutgoingDataimpl Sync for OutgoingDataimpl Unpin for OutgoingDataimpl UnwindSafe for OutgoingDataBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V