Skip to main content

ClientMessage

Enum ClientMessage 

Source
pub enum ClientMessage {
Show 13 variants Hello { api: u32, role: Role, }, Command { module: String, action: String, args: Vec<String>, }, Event { activity: ActivityId, kind: EventKind, output: Option<String>, click: Option<Click>, }, PassOn { click: Click, }, BubbleClick { bubble: BubbleId, }, OverflowClick { area: Area, }, Status, Reload, Dismiss, ListActions { module: Option<String>, }, StepAside { pid: u32, }, Profile { seconds: u32, }, Frames { output: String, surface: String, frames: u32, },
}
Expand description

Sent to the daemon.

Variants§

§

Hello

Must be the first message on every connection.

Fields

§api: u32
§role: Role
§

Command

Runs a module action. Answered with ok or error.

Fields

§module: String
§action: String
§args: Vec<String>
§

Event

Something happened to the island. UI only, never answered.

Fields

§activity: ActivityId
§output: Option<String>

The monitor whose island it happened on, when the UI knows.

§click: Option<Click>

For outside: the click that closed it, which the daemon passes on to the window under it once the island lets go.

§

PassOn

A scroll the island caught that belongs to the window under it, once the island lets go there. UI only, never answered.

Fields

§click: Click
§

BubbleClick

A click on a bubble. UI only, never answered.

Fields

§bubble: BubbleId
§

OverflowClick

A click on an area’s “+N”, for the bubbles it leaves out. The daemon lists them in the island. UI only, never answered.

Fields

§area: Area
§

Status

Answered with status.

§

Reload

Reloads config and theme. Answered with ok or error.

§

Dismiss

Closes what the island shows, as a right click on it does. For a keybind: notices that don’t take the keyboard can’t hear Escape. Answered with ok, also when nothing shows.

§

ListActions

Answered with actions, for one module or all of them.

Fields

§module: Option<String>
§

StepAside

Asks the daemon to give the session to the daemon with process pid, as mochid --dev does: it stops its shell and its modules, waits for that process to end, then starts again. Answered with ok before it stops.

Fields

§pid: u32
§

Profile

Records what mochid, Quickshell and the programs they start cost for seconds, with a flame graph of mochid, and writes a report. Answered with output, the report’s path, once it’s written.

Fields

§seconds: u32
§

Frames

How many frames a window of the UI drew in the last second, while the daemon profiles: surface is island or desktop. UI only, never answered.

Fields

§output: String
§surface: String
§frames: u32

Trait Implementations§

Source§

impl Clone for ClientMessage

Source§

fn clone(&self) -> ClientMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClientMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ClientMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ClientMessage

Source§

fn eq(&self, other: &ClientMessage) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ClientMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ClientMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.