Skip to main content

DataChannelHandler

Trait DataChannelHandler 

Source
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§

Source

fn on_open(&mut self)

Source

fn on_closed(&mut self)

Source

fn on_error(&mut self, err: &str)

Source

fn on_message(&mut self, msg: &[u8])

Source

fn on_buffered_amount_low(&mut self)

Source

fn on_available(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§