pub enum Command {
Signal {
pid: u32,
signal: ProcessSignal,
},
SetInterval(Duration),
SetProcessLimit(Option<usize>),
WatchProcesses(Vec<u32>),
WatchProcessNames(Vec<String>),
SetPublicIp(Option<PublicIpLookup>),
}Expand description
Requests from the UI to the worker.
Variants§
Signal
Send a signal to a process on the monitored host.
SetInterval(Duration)
Change the polling interval.
SetProcessLimit(Option<usize>)
Limit snapshots to the top processes (None: all).
WatchProcesses(Vec<u32>)
Processes to report the exit of (see DataSource::watch_processes).
WatchProcessNames(Vec<String>)
Processes to report the exit of by name (see
DataSource::watch_process_names).
SetPublicIp(Option<PublicIpLookup>)
Look up the public address (see DataSource::set_public_ip).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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