Struct tokio_i3ipc::I3

source ·
pub struct I3 { /* private fields */ }
Expand description

Newtype wrapper for UnixStream that implements i3’s IPC

Implementations§

Connects to I3 over UnixStream

Receive some message from the socket. Holds a Msg type and payload

Like read_msg but for event::Event

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

Future that gets all Outputs, sends Outputs

Future to get complete Node, sends Tree

Get all Marks, sends Marks

Future to get all BarIds, sends BarConfig

Future to get configs associated with a bar id responds with BarConfig, sends BarConfig

Get i3 version

Future to get BindingModes, sends BindingModes

Future for Config, sends Config

Future sends Tick

Future Sync

Future to get BindingState, sends BindingState

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more