pub struct Config { /* private fields */ }
Expand description
Abstracts the configuration of the application.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(args: Args) -> Result<Self, Box<dyn Error>>
pub fn new(args: Args) -> Result<Self, Box<dyn Error>>
Creates a new configuration of the application.
args
are the commandline parameters made up by the IP and port to which the application should bind.
§Errors
An error is returned if the number of arguments is wrong or if parsing the arguments fails.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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