[−][src]Struct i3ipc::I3Connection
Abstraction over an ipc socket to i3. Handles messages/replies.
Methods
impl I3Connection
[src]
pub fn connect() -> Result<I3Connection, EstablishError>
[src]
Establishes the IPC connection.
pub fn command(&mut self, string: &str) -> Result<Command, MessageError>
[src]
Renamed to run_command
pub fn run_command(&mut self, string: &str) -> Result<Command, MessageError>
[src]
The payload of the message is a command for i3 (like the commands you can bind to keys in the configuration file) and will be executed directly after receiving it.
pub fn get_workspaces(&mut self) -> Result<Workspaces, MessageError>
[src]
Gets the current workspaces.
pub fn get_outputs(&mut self) -> Result<Outputs, MessageError>
[src]
Gets the current outputs.
pub fn get_tree(&mut self) -> Result<Node, MessageError>
[src]
Gets the layout tree. i3 uses a tree as data structure which includes every container.
pub fn get_marks(&mut self) -> Result<Marks, MessageError>
[src]
Gets a list of marks (identifiers for containers to easily jump to them later).
pub fn get_bar_ids(&mut self) -> Result<BarIds, MessageError>
[src]
Gets an array with all configured bar IDs.
pub fn get_bar_config(&mut self, id: &str) -> Result<BarConfig, MessageError>
[src]
Gets the configuration of the workspace bar with the given ID.
pub fn get_version(&mut self) -> Result<Version, MessageError>
[src]
Gets the version of i3. The reply will include the major, minor, patch and human-readable version.
pub fn get_binding_modes(&mut self) -> Result<BindingModes, MessageError>
[src]
feature="i3-4-13"
only.Gets the list of currently configured binding modes.
pub fn get_config(&mut self) -> Result<Config, MessageError>
[src]
feature="i3-4-14"
only.Returns the last loaded i3 config.
Trait Implementations
Auto Trait Implementations
impl Send for I3Connection
impl Sync for I3Connection
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,