[−][src]Trait i3ipc_types::I3IPC
Trait containing methods to encode and decode message from i3
Associated Constants
Loading content...Provided methods
fn _encode_msg<P>(&self, msg: Msg, payload: Option<P>) -> Vec<u8> where
P: AsRef<str>,
P: AsRef<str>,
fn encode_msg(&self, msg: Msg) -> Vec<u8>
fn encode_msg_body<P>(&self, msg: Msg, payload: P) -> Vec<u8> where
P: AsRef<str>,
P: AsRef<str>,
fn encode_msg_json<P>(&self, msg: Msg, payload: P) -> Result<Vec<u8>> where
P: Serialize,
P: Serialize,
fn decode_event(evt_type: u32, payload: Vec<u8>) -> Result<Event>
fn decode_msg(&mut self) -> Result<(u32, Vec<u8>)>
Implementors
impl<T: Read + Write> I3IPC for T
[src]
const MAGIC: &'static str
[src]
fn _encode_msg<P>(&self, msg: Msg, payload: Option<P>) -> Vec<u8> where
P: AsRef<str>,
[src]
P: AsRef<str>,
fn encode_msg(&self, msg: Msg) -> Vec<u8>
[src]
fn encode_msg_body<P>(&self, msg: Msg, payload: P) -> Vec<u8> where
P: AsRef<str>,
[src]
P: AsRef<str>,
fn encode_msg_json<P>(&self, msg: Msg, payload: P) -> Result<Vec<u8>> where
P: Serialize,
[src]
P: Serialize,