pub enum Action {
OpenDisplay {
file: String,
macros: Macros,
target: String,
description: String,
},
WritePv {
pv_name: String,
value: String,
description: String,
},
OpenWebpage {
url: String,
description: String,
},
Execute {
file: String,
text: String,
description: String,
},
Command {
command: String,
directory: String,
description: String,
},
CloseDisplay {
description: String,
},
Trend {
pv_names: Vec<String>,
description: String,
},
Unsupported {
kind: String,
description: String,
},
}Expand description
A widget action, e.g. from an action button.
Variants§
OpenDisplay
WritePv
OpenWebpage
Execute
Run a script: file names it, and an embedded one (EmbeddedJs,
EmbeddedPy) has its source in text.
Command
An external command, run in directory (the display’s own when empty).
CloseDisplay
Close the display, as BOY’s ScriptUtil.closeAssociatedOPI scripts
(EDM “Exit” buttons) do: type close_display, bobview’s own.
Trend
Open a trend of pv_names, as BOY scripts that open a Data Browser
do: type trend, bobview’s own, with a <pv_name> for each PV.
Unsupported
Anything else (other scripts, …): shown but does nothing.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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