pub enum Call {
Fs {
target: Target,
op: Fs,
},
Spawn {
target: Target,
spec: Spawn,
},
Stdin {
proc: u64,
data: Vec<u8>,
close: bool,
},
Kill {
proc: u64,
signal: Signal,
},
Resize {
proc: u64,
cols: u16,
rows: u16,
},
Escalate {
target: Target,
cmdline: String,
},
Service {
method: String,
params: Value,
},
Approve {
title: String,
detail: String,
options: Vec<String>,
},
TimerSet {
id: String,
every_ms: Option<u64>,
at_ms: Option<u64>,
},
TimerClear {
id: String,
},
ClipboardGet,
ClipboardSet(String),
}Expand description
A host call (Out::Request), answered by In::Response.
Variants§
Fs
Spawn
Stdin
Kill
Resize
Escalate
Run one command elevated: a card every time (no “Always”), then sudo in the visible terminal, UAC on Windows, the OS dialog on macOS.
Service
A host service method by name (prefs.get, agent.send …).
Approve
Host-drawn approval popup; the answer comes as approval.result.
TimerSet
TimerClear
ClipboardGet
ClipboardSet(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Call
impl<'de> Deserialize<'de> for Call
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
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Forget for Call
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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