[][src]Trait cxmr_ws_client::Protocol

pub trait Protocol<I>: Sized + 'static {
    type Parser: Parser<I>;
    fn subscription(sub: &Subscription) -> Option<(Command, Self::Parser)>;
}

Private stream protocol.

Associated Types

type Parser: Parser<I>

Private protocol parser.

Loading content...

Required methods

fn subscription(sub: &Subscription) -> Option<(Command, Self::Parser)>

Creates protocol parser and stream address.

Loading content...

Implementors

Loading content...