Struct unleash_edge::cli::HttpServerArgs
source · pub struct HttpServerArgs {
pub port: u16,
pub interface: String,
pub base_path: String,
pub workers: usize,
pub tls: TlsOptions,
}
Fields§
§port: u16
Which port should this server listen for HTTP traffic on
interface: String
Which interfaces should this server listen for HTTP traffic on
base_path: String
Which base path should this server listen for HTTP traffic on
workers: usize
How many workers should be started to handle requests. Defaults to number of physical cpus
tls: TlsOptions
Implementations§
source§impl HttpServerArgs
impl HttpServerArgs
pub fn http_server_tuple(&self) -> (String, u16)
pub fn https_server_tuple(&self) -> (String, u16)
Trait Implementations§
source§impl Args for HttpServerArgs
impl Args for HttpServerArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for HttpServerArgs
impl Clone for HttpServerArgs
source§fn clone(&self) -> HttpServerArgs
fn clone(&self) -> HttpServerArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HttpServerArgs
impl Debug for HttpServerArgs
source§impl FromArgMatches for HttpServerArgs
impl FromArgMatches for HttpServerArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for HttpServerArgs
impl RefUnwindSafe for HttpServerArgs
impl Send for HttpServerArgs
impl Sync for HttpServerArgs
impl Unpin for HttpServerArgs
impl UnwindSafe for HttpServerArgs
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