pub struct SetSeverityCommand {
pub no_persist: bool,
pub force: bool,
pub interest_selector: Vec<OneOrMany<LogInterestSelector>>,
}
Expand description
Sets the severity, but doesn’t view any logs.
Fields§
§no_persist: bool
if true, doesn’t persist the interest setting and blocks forever, keeping the connection open. Interest settings will be reset when the command exits.
force: bool
if enabled, selectors will be passed directly to Archivist without any filtering. If disabled and no matching components are found, the user will be prompted to either enable this or be given a list of selectors to choose from.
interest_selector: Vec<OneOrMany<LogInterestSelector>>
configure the log settings on the target device for components matching
the given selector. This modifies the minimum log severity level emitted
by components during the logging session.
Specify using the format
Trait Implementations§
Source§impl ArgsInfo for SetSeverityCommand
impl ArgsInfo for SetSeverityCommand
Source§fn get_args_info() -> CommandInfoWithArgs
fn get_args_info() -> CommandInfoWithArgs
Returns the argument info.
§fn get_subcommands() -> Vec<SubCommandInfo<'static>>
fn get_subcommands() -> Vec<SubCommandInfo<'static>>
Returns the list of subcommands
Source§impl Clone for SetSeverityCommand
impl Clone for SetSeverityCommand
Source§fn clone(&self) -> SetSeverityCommand
fn clone(&self) -> SetSeverityCommand
Returns a copy of the value. Read more
1.0.0 · 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 SetSeverityCommand
impl Debug for SetSeverityCommand
Source§impl Default for SetSeverityCommand
impl Default for SetSeverityCommand
Source§fn default() -> SetSeverityCommand
fn default() -> SetSeverityCommand
Returns the “default value” for a type. Read more
Source§impl FromArgs for SetSeverityCommand
impl FromArgs for SetSeverityCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for SetSeverityCommand
impl PartialEq for SetSeverityCommand
Source§impl SubCommand for SetSeverityCommand
impl SubCommand for SetSeverityCommand
impl StructuralPartialEq for SetSeverityCommand
Auto Trait Implementations§
impl Freeze for SetSeverityCommand
impl RefUnwindSafe for SetSeverityCommand
impl Send for SetSeverityCommand
impl Sync for SetSeverityCommand
impl Unpin for SetSeverityCommand
impl UnwindSafe for SetSeverityCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.