INNER CODE UNIT · Rust
id
webrtc-rs/webrtc · src/data_channel/mod.rs:100
fn id(&self) -> RTCDataChannelId;
/// Returns the current state of this data channel.
async fn ready_state(&self) -> Result<RTCDataChannelState>;
/// Returns the threshold at which the buffered amount is considered to be *high*.
///
/// When the buffered amount increases from below this threshold to equal or above it,
/// the [`OnBufferedAmountHigh`](DataChannelEvent::OnBufferedAmountHigh) event fires.
/// Initially `u32::MAX` on each new channel; the application may change it at any time
/// with [`set_buffered_amount_high_threshold`](Self::set_buffered_amount_high_threshold).
async fn buffered_amount_high_threshold(&self) -> Result<u32>;
/// Sets the buffered amount high threshold in bytes.
async fn set_buffered_amount_high_threshold(&self, threshold: u32) -> Result<()>;
/// Returns the threshold at which the buffered amount is considered to be *low*.
///
/// When the buffered amount decreases from above this threshold to equal or below it,
/// the [`OnBufferedAmountLow`](DataChannelEvent::OnBufferedAmountLow) event fires.
/// Initially `0` on each new channel; the application may change it at any time with
/// [`set_buffered_amount_low_threshold`](Self::set_buffered_amount_low_threshold).