Struct tokio_i3ipc::I3 [−][src]
pub struct I3 { /* fields omitted */ }
Expand description
Newtype wrapper for UnixStream
that implements i3’s IPC
Implementations
Receive some message from the socket. Holds a Msg
type and payload
Like read_msg
but for event::Event
pub async fn send_read<P, D>(
&mut self,
msg: Msg,
payload: P
) -> Result<MsgResponse<D>> where
P: AsRef<str>,
D: DeserializeOwned,
pub async fn send_read<P, D>(
&mut self,
msg: Msg,
payload: P
) -> Result<MsgResponse<D>> where
P: AsRef<str>,
D: DeserializeOwned,
Send a Msg
and payload and receive a response. Convenience function
over send_msg
and read_msg
Returns a Future that will send a Subscribe message to i3 along with a list of events to listen to.
Provides a type that implements Stream
so you can await
events in a
loop
Run an arbitrary command on i3. Response is a Vec
of success
true/false.
Future for getting the current Workspaces, sends Workspaces
Get i3 version
Future to get BindingModes, sends BindingModes