pub struct RtcDataChannel<D> { /* private fields */ }

Implementations

Number of bytes currently queued to be sent over the data channel.

This method is the counterpart of available_amount.

Sets the lower threshold of buffered_amount.

The default value is 0. When the number of buffered outgoing bytes, as indicated by buffered_amount, falls to or below this value, a on_bufferd_amount_low event is fired. This event may be used, for example, to implement code which queues more messages to be sent whenever there’s room to buffer them.

Number of bytes currently queued to be consumed from the data channel.

This method is the counterpart of buffered_amount.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.