Struct trib_front::Cfg [−][src]
pub(crate) struct Cfg {
pub(crate) log_level: LevelFilter,
pub(crate) server_type: ServerType,
pub(crate) config: String,
pub(crate) host: String,
pub(crate) port: u16,
}Expand description
A program which runs the tribbler front-end service.
Fields
log_level: LevelFilterlevel to use when logging
server_type: ServerTypeserver type to run the front-end against
config: Stringhost: Stringthe host address to bind to. e.g. 127.0.0.1 or 0.0.0.0
port: u16the host port to bind
Trait Implementations
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for Cfg
impl UnwindSafe for Cfg
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
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
