[][src]Trait queen::net::Codec

pub trait Codec: Send + 'static {
    pub fn new() -> Self;
pub fn decode(
        &mut self,
        crypto: &Option<Crypto>,
        bytes: Vec<u8>
    ) -> Result<Message>;
pub fn encode(
        &mut self,
        crypto: &Option<Crypto>,
        message: Message
    ) -> Result<Vec<u8>>; }

Required methods

pub fn new() -> Self[src]

pub fn decode(
    &mut self,
    crypto: &Option<Crypto>,
    bytes: Vec<u8>
) -> Result<Message>
[src]

pub fn encode(
    &mut self,
    crypto: &Option<Crypto>,
    message: Message
) -> Result<Vec<u8>>
[src]

Loading content...

Implementors

impl Codec for NsonCodec[src]

Loading content...