Struct bitbar::Command [−][src]
pub struct Command { /* fields omitted */ }
Expand description
Used by ContentItem::command
.
A Command
contains the Params
, which includes the actual command (called bash=
by BitBar) and its parameters, and the value of terminal=
.
It is usually constructed via conversion, unless terminal=true
is required.
Note: Unlike BitBar’s default of true
, Command
assumes a default of terminal=false
.
Implementations
Creates a Command
with the terminal=
value set to true
.
Attempts to construct a Command
with terminal=
set to false
from the given arguments.
This is not a TryFrom
implementation due to a limitation in Rust.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl UnwindSafe for Command
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.