[][src]Trait async_i3ipc::I3Protocol

pub trait I3Protocol {
    pub const MAGIC: &'static str;
    pub fn _encode_msg<P>(
        &self,
        msg: Msg,
        payload: Option<P>
    ) -> Vec<u8, Global>
    where
        P: AsRef<str>
, { ... }
pub fn encode_msg(&self, msg: Msg) -> Vec<u8, Global> { ... }
pub fn encode_msg_body<P>(&self, msg: Msg, payload: P) -> Vec<u8, Global>
    where
        P: AsRef<str>
, { ... }
pub fn encode_msg_json<P>(
        &self,
        msg: Msg,
        payload: P
    ) -> Result<Vec<u8, Global>, Error>
    where
        P: Serialize
, { ... }
pub fn decode_event(
        evt_type: u32,
        payload: Vec<u8, Global>
    ) -> Result<Event, Error> { ... } }

Associated Constants

pub const MAGIC: &'static str[src]

Loading content...

Provided methods

pub fn _encode_msg<P>(&self, msg: Msg, payload: Option<P>) -> Vec<u8, Global> where
    P: AsRef<str>, 
[src]

pub fn encode_msg(&self, msg: Msg) -> Vec<u8, Global>[src]

pub fn encode_msg_body<P>(&self, msg: Msg, payload: P) -> Vec<u8, Global> where
    P: AsRef<str>, 
[src]

pub fn encode_msg_json<P>(
    &self,
    msg: Msg,
    payload: P
) -> Result<Vec<u8, Global>, Error> where
    P: Serialize
[src]

pub fn decode_event(
    evt_type: u32,
    payload: Vec<u8, Global>
) -> Result<Event, Error>
[src]

Loading content...

Implementations on Foreign Types

impl I3Protocol for UnixStream[src]

impl I3Protocol for UnixStream[src]

Loading content...

Implementors

Loading content...