pub trait Channel: AsyncRead + AsyncWrite + Send + Unpin + Debug + 'static {
    fn id(&self) -> u16;
    fn label(&self) -> &String;
    fn is_closed(&self) -> bool;
    fn on_close(&self) -> Receiver<bool>;

    fn debug(&self, channel_type: &str, f: &mut Formatter<'_>) -> Result { ... }
}

Required Methods

Provided Methods

Implementors