Struct conjure_runtime::config::SecurityConfigBuilder
source · [−]pub struct SecurityConfigBuilder(_);Expand description
A builder type for SecurityConfigs.
Implementations
sourceimpl SecurityConfigBuilder
impl SecurityConfigBuilder
sourcepub fn ca_file(&mut self, ca_file: Option<PathBuf>) -> &mut SecurityConfigBuilder
pub fn ca_file(&mut self, ca_file: Option<PathBuf>) -> &mut SecurityConfigBuilder
Sets the trusted root CA file.
sourcepub fn key_file(
&mut self,
key_file: Option<PathBuf>
) -> &mut SecurityConfigBuilder
pub fn key_file(
&mut self,
key_file: Option<PathBuf>
) -> &mut SecurityConfigBuilder
Sets the private key used for client certificate authentication.
sourcepub fn cert_file(
&mut self,
cert_file: Option<PathBuf>
) -> &mut SecurityConfigBuilder
pub fn cert_file(
&mut self,
cert_file: Option<PathBuf>
) -> &mut SecurityConfigBuilder
Sets the certificate chain used for client certificate authentication.
sourcepub fn build(&self) -> SecurityConfig
pub fn build(&self) -> SecurityConfig
Creates a new SecurityConfig.
Trait Implementations
sourceimpl Default for SecurityConfigBuilder
impl Default for SecurityConfigBuilder
sourcefn default() -> SecurityConfigBuilder
fn default() -> SecurityConfigBuilder
Returns the “default value” for a type. Read more
sourceimpl From<SecurityConfig> for SecurityConfigBuilder
impl From<SecurityConfig> for SecurityConfigBuilder
sourcefn from(config: SecurityConfig) -> SecurityConfigBuilder
fn from(config: SecurityConfig) -> SecurityConfigBuilder
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SecurityConfigBuilder
impl Send for SecurityConfigBuilder
impl Sync for SecurityConfigBuilder
impl Unpin for SecurityConfigBuilder
impl UnwindSafe for SecurityConfigBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more