Struct bgpd_rs::cli::Args[][src]

pub struct Args {
    pub cmd: Command,
    pub host: String,
    pub port: u16,
    pub api: Option<SocketAddr>,
    pub verbose: u8,
}
Expand description

CLI to interact with BGPd

Fields

cmd: Commandhost: Stringport: u16api: Option<SocketAddr>

API Listening address/port (E.g. 127.0.0.1:8080). If not provided, will fall back to config file value

verbose: u8

Show debug logs (additive for trace logs)

Trait Implementations

Formats the value using the given formatter. Read more

Returns the corresponding clap::App.

Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more