pub async fn buffered_amount(&self) -> usize {
        let data_channel = self.data_channel.lock().await;
        if let Some(dc) = &*data_channel {
            dc.buffered_amount()
        } else {
            0
        }
    }
/// buffered_amount represents the number of bytes of application data
/// (UTF-8 text and binary data) that have been queued using send(). Even
/// though the data transmission can occur in parallel, the returned value
/// MUST NOT be decreased before the current task yielded back to the event
/// loop to prevent race conditions. The value does not include framing
/// overhead incurred by the protocol, or buffering done by the operating
/// system or network hardware. The value of buffered_amount slot will only
/// increase with each call to the send() method as long as the ready_state is
/// open; however, buffered_amount does not reset to zero once the channel
/// closes.
buffered_amount represents the number of bytes of application data
(UTF-8 text and binary data) that have been queued using send(). Even
though the data transmission can occur in parallel, the returned value
MUST NOT be decreased before the current task yielded back to the event
loop to prevent race conditions. The value does not include framing
overhead incurred by the protocol, or buffering done by the operating
system or network hardware. The value of buffered_amount slot will only
increase with each call to the send() method as long as the ready_state is
open; however, buffered_amount does not reset to zero once the channel
closes.
buffered_amount represents the number of bytes of application data ( UTF - 8 text and binary data ) that have been queued using send () . Even though the data transmission can occur in parallel the returned value MUST NOT be decreased before the current task yielded back to the event loop to prevent race conditions . The value does not include framing overhead incurred by the protocol or buffering done by the operating system or network hardware . The value of buffered_amount slot will only increase with each call to the send () method as long as the ready_state is open ; however buffered_amount does not reset to zero once the channel closes .
pub async fn buffered_amount(&self) -> usize {
        let data_channel = self.data_channel.lock().await;
        if let Some(dc) = &*data_channel {
            dc.buffered_amount()
        } else {
            0
        }
    }
pub async fn buffered_amount ( & self ) -> usize { let data_channel = self . data_channel . lock ( ) . await ; if let Some ( dc ) = & * data_channel { dc . buffered_amount ( ) } else { 0 } }
buffered_amount represents the number of bytes of application data
(UTF-8 text and binary data) that have been queued using send().
buffered_amount represents the number of bytes of application data ( UTF - 8 text and binary data ) that have been queued using send () .
&self