INNER CODE UNIT · Rust
writable
webrtc-rs/webrtc · src/data_channel/mod.rs:195
async fn writable(&self) -> Result<()> {
Ok(())
}
/// Non-blocking [`send`](Self::send): enqueues `data` and returns at once, or fails
/// fast with [`Error::ErrSendBufferFull`] when a send-buffer limit is configured and
/// this message would push the channel's outstanding bytes past it. Never waits for
/// capacity. Mirrors `tokio::mpsc::Sender::try_send`.
///
/// `data` is **consumed** on rejection, so retain a clone if you intend to retry.
///
/// Defaults to delegating to [`send`](Self::send) — correct for implementors that do
/// not impose a blocking limit, since there `send` is already non-blocking.
async fn try_send(&self, data: BytesMut) -> Result<()> {
self.send(data).await
}
/// Non-blocking [`send_text`](Self::send_text); see [`try_send`](Self::try_send).
///
/// Defaults to delegating to [`send_text`](Self::send_text).