Struct mz_server_core::TlsCliArgs
source · pub struct TlsCliArgs {
pub(crate) tls_mode: String,
pub(crate) tls_cert: Option<PathBuf>,
pub(crate) tls_key: Option<PathBuf>,
}
Expand description
Command line arguments for TLS.
Fields§
§tls_mode: String
How stringently to demand TLS authentication and encryption.
If set to “disable”, then environmentd rejects HTTP and PostgreSQL connections that negotiate TLS.
If set to “require”, then environmentd requires that all HTTP and PostgreSQL connections negotiate TLS. Unencrypted connections will be rejected.
tls_cert: Option<PathBuf>
Certificate file for TLS connections.
tls_key: Option<PathBuf>
Private key file for TLS connections.
Implementations§
source§impl TlsCliArgs
impl TlsCliArgs
sourcepub fn into_config(self) -> Result<Option<TlsCertConfig>, Error>
pub fn into_config(self) -> Result<Option<TlsCertConfig>, Error>
Convert args into configuration.
Trait Implementations§
source§impl Args for TlsCliArgs
impl Args for TlsCliArgs
source§impl Clone for TlsCliArgs
impl Clone for TlsCliArgs
source§fn clone(&self) -> TlsCliArgs
fn clone(&self) -> TlsCliArgs
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 CommandFactory for TlsCliArgs
impl CommandFactory for TlsCliArgs
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
source§impl Debug for TlsCliArgs
impl Debug for TlsCliArgs
source§impl FromArgMatches for TlsCliArgs
impl FromArgMatches for TlsCliArgs
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
.source§impl Parser for TlsCliArgs
impl Parser for TlsCliArgs
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Auto Trait Implementations§
impl Freeze for TlsCliArgs
impl RefUnwindSafe for TlsCliArgs
impl Send for TlsCliArgs
impl Sync for TlsCliArgs
impl Unpin for TlsCliArgs
impl UnwindSafe for TlsCliArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request