pub struct Connection(_);

Implementations

Creates a new async Connection to sway-ipc.

Runs the payload as sway commands.

Get the list of current workspaces.

Subscribe the IPC connection to the events listed in the payload.

Get the list of current outputs.

Get the node layout tree.

Get the names of all the marks currently set.

Get a list of bar config names.

Get the specified bar config.

Get the version of sway that owns the IPC socket.

Get the list of binding mode names.

Returns the config that was last loaded.

Sends a tick event with the specified payload.

Replies failure object for i3 compatibility.

Request the current binding state, e.g. the currently active binding mode name.

Get the list of input devices.

Get the list of seats.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

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.

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.