pub struct StartupConfig {
pub listen_port: u16,
pub forward_port: u16,
pub bind_address: String,
pub verbose: bool,
pub quiet: bool,
}Expand description
Configuration for startup display.
Decouples the startup info display from CLI argument parsing, allowing the server module to be used independently.
Fields§
§listen_port: u16Port to listen on
forward_port: u16Port to forward to
bind_address: StringBind address
verbose: boolWhether to show verbose output
quiet: boolWhether to suppress output
Trait Implementations§
Source§impl Clone for StartupConfig
impl Clone for StartupConfig
Source§fn clone(&self) -> StartupConfig
fn clone(&self) -> StartupConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StartupConfig
impl RefUnwindSafe for StartupConfig
impl Send for StartupConfig
impl Sync for StartupConfig
impl Unpin for StartupConfig
impl UnsafeUnpin for StartupConfig
impl UnwindSafe for StartupConfig
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