Skip to main content

Channel

Trait Channel 

Source
pub trait Channel:
    AsyncRead
    + AsyncWrite
    + Send
    + Unpin
    + 'static {
    // Required methods
    fn id(&self) -> u16;
    fn label(&self) -> &String;
}

Required Methods§

Source

fn id(&self) -> u16

Source

fn label(&self) -> &String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§