pub trait DataChannelHandler {
// Provided methods
fn on_open(&mut self) { ... }
fn on_closed(&mut self) { ... }
fn on_error(&mut self, err: &str) { ... }
fn on_message(&mut self, msg: &[u8]) { ... }
fn on_buffered_amount_low(&mut self) { ... }
fn on_available(&mut self) { ... }
}Provided Methods§
fn on_open(&mut self)
fn on_closed(&mut self)
fn on_error(&mut self, err: &str)
fn on_message(&mut self, msg: &[u8])
fn on_buffered_amount_low(&mut self)
fn on_available(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".