Enum swayipc_async::CommandType
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum CommandType {
Show 15 variants
RunCommand,
GetWorkspaces,
Subscribe,
GetOutputs,
GetTree,
GetMarks,
GetBarConfig,
GetVersion,
GetBindingModes,
GetConfig,
SendTick,
Sync,
GetBindingState,
GetInputs,
GetSeats,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
RunCommand
Runs the payload as sway commands.
GetWorkspaces
Get the list of current workspaces.
Subscribe
Subscribe the IPC connection to the events listed in the payload.
GetOutputs
Get the list of current outputs.
GetTree
Get the node layout tree.
GetMarks
Get the names of all the marks currently set.
GetBarConfig
Get the specified bar config or a list of bar config names.
GetVersion
Get the version of sway that owns the IPC socket.
GetBindingModes
Get the list of binding mode names.
GetConfig
Returns the config that was last loaded.
SendTick
Sends a tick event with the specified payload.
Sync
Replies failure object for i3 compatibility.
GetBindingState
Request the current binding state, e.g. the currently active binding mode name.
GetInputs
Get the list of input devices.
GetSeats
Get the list of seats.
Implementations
sourceimpl CommandType
impl CommandType
Trait Implementations
sourceimpl Clone for CommandType
impl Clone for CommandType
sourcefn clone(&self) -> CommandType
fn clone(&self) -> CommandType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommandType
impl Debug for CommandType
sourceimpl PartialEq<CommandType> for CommandType
impl PartialEq<CommandType> for CommandType
impl Copy for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more