[][src]Trait grammers_mtproto::transports::Transport

pub trait Transport {
    type Encoder: Encoder;
    type Decoder: Decoder;
    fn instance() -> (Self::Encoder, Self::Decoder);
}

The trait used by the transports to create instances of themselves.

Associated Types

Loading content...

Required methods

fn instance() -> (Self::Encoder, Self::Decoder)

Loading content...

Implementors

impl Transport for TransportAbridged[src]

type Encoder = AbridgedEncoder

type Decoder = AbridgedDecoder

impl Transport for TransportFull[src]

type Encoder = FullEncoder

type Decoder = FullDecoder

impl Transport for TransportIntermediate[src]

type Encoder = IntermediateEncoder

type Decoder = IntermediateDecoder

Loading content...