Enum routinator::operation::Operation [−][src]
pub enum Operation { Init(Init), Server(Server), Vrps(Vrps), Validate(Validate), Update(Update), PrintConfig(PrintConfig), Dump(Dump), Man(Man), }
Expand description
The command to execute.
This type collects all the commands we have defined plus any possible extra configuration they support.
You can create a value from the command line arguments. First, you add
all necessary sub-commands and arguments to a clap App
via
config_args
and then process the argument matches into a value in
from_arg_matches
. Finally, you can execute the created command
through the run
method.
Variants
Init(Init)
Server(Server)
Vrps(Vrps)
Validate(Validate)
Update(Update)
PrintConfig(PrintConfig)
Dump(Dump)
Man(Man)
Implementations
impl Operation
[src]
impl Operation
[src]pub fn prepare() -> Result<(), Failed>
[src]
pub fn prepare() -> Result<(), Failed>
[src]Prepares everything.
Call this before doing anything else.
pub fn config_args<'a: 'b, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
pub fn config_args<'a: 'b, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]Adds the command configuration to a clap app.
pub fn from_arg_matches(
matches: &ArgMatches<'_>,
cur_dir: &Path,
config: &mut Config
) -> Result<Self, Failed>
[src]
pub fn from_arg_matches(
matches: &ArgMatches<'_>,
cur_dir: &Path,
config: &mut Config
) -> Result<Self, Failed>
[src]Creates a command from clap matches.
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,