pub enum FromPlugin {
Show 13 variants
Hello {
api: u32,
},
PublishState {
state: Value,
},
Present {
id: u64,
spec: ActivitySpec,
},
Update {
id: u64,
payload: Value,
},
Withdraw {
id: u64,
},
ShowBubble {
id: u64,
spec: BubbleSpec,
},
UpdateBubble {
id: u64,
payload: Value,
},
HideBubble {
id: u64,
},
Reply {
id: u64,
output: Option<String>,
error: Option<String>,
},
Call {
id: u64,
module: String,
action: String,
args: Vec<String>,
},
ActivateWorkspace {
id: u64,
workspace: u32,
},
Windows {
id: u64,
},
PointerOutput {
id: u64,
},
}Expand description
Sent by a plugin backend to mochid.
Variants§
Hello
The answer to mochid’s hello, with the protocol version the
backend speaks.
PublishState
Replaces its state, which the UI and other modules can read.
Present
Submits an activity, numbered by the backend.
Update
Replaces an activity’s payload.
Withdraw
ShowBubble
Shows a bubble, numbered by the backend, or replaces the one with the same key.
UpdateBubble
HideBubble
Reply
Answers a command: with output to print, or error, or neither
for plain success.
Call
Runs another module’s action. Answered with call_result.
ActivateWorkspace
Switches to a workspace. Answered with compositor_result.
Windows
Asks for the windows on visible workspaces. Answered with
compositor_result.
PointerOutput
Asks which output the pointer is on. Answered with
compositor_result.
Trait Implementations§
Source§impl Clone for FromPlugin
impl Clone for FromPlugin
Source§fn clone(&self) -> FromPlugin
fn clone(&self) -> FromPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FromPlugin
impl Debug for FromPlugin
Source§impl<'de> Deserialize<'de> for FromPlugin
impl<'de> Deserialize<'de> for FromPlugin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 FromPlugin
impl PartialEq for FromPlugin
Source§impl Serialize for FromPlugin
impl Serialize for FromPlugin
impl StructuralPartialEq for FromPlugin
Auto Trait Implementations§
impl Freeze for FromPlugin
impl RefUnwindSafe for FromPlugin
impl Send for FromPlugin
impl Sync for FromPlugin
impl Unpin for FromPlugin
impl UnsafeUnpin for FromPlugin
impl UnwindSafe for FromPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more