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: Command
host: String
port: u16
api: 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
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
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
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
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Args
impl UnwindSafe for Args
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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