pub struct HealthcheckArgs {
pub config: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub url: Option<String>,
pub timeout_secs: u64,
}Available on crate feature
bin only.Expand description
Arguments for healthcheck. Shares the config/host/port resolution inputs so
the probe targets the same address the server binds.
Fields§
§config: Option<String>Config file path used to resolve the probe target. Also
STORAGE_PROXY_CONFIG.
host: Option<String>Host to connect to (overrides config). A wildcard bind host maps to loopback.
port: Option<u16>Port to connect to (overrides config).
url: Option<String>Probe the full health URL directly, bypassing config load entirely. Use
when no config file is available to the probe process (e.g. the Docker
HEALTHCHECK, which relies on the default host/port).
timeout_secs: u64Probe timeout in seconds.
Trait Implementations§
Source§impl Args for HealthcheckArgs
impl Args for HealthcheckArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for HealthcheckArgs
impl Clone for HealthcheckArgs
Source§fn clone(&self) -> HealthcheckArgs
fn clone(&self) -> HealthcheckArgs
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 moreSource§impl Debug for HealthcheckArgs
impl Debug for HealthcheckArgs
Source§impl Default for HealthcheckArgs
impl Default for HealthcheckArgs
Source§fn default() -> HealthcheckArgs
fn default() -> HealthcheckArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for HealthcheckArgs
impl FromArgMatches for HealthcheckArgs
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 HealthcheckArgs
impl RefUnwindSafe for HealthcheckArgs
impl Send for HealthcheckArgs
impl Sync for HealthcheckArgs
impl Unpin for HealthcheckArgs
impl UnsafeUnpin for HealthcheckArgs
impl UnwindSafe for HealthcheckArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more