pub struct ClientBuilder<'a>where
TlsSettings: Describe,{ /* private fields */ }Expand description
Builds a Built from its settings, filled in layers, and the inputs it takes. build lists everything still missing at once.
Implementations§
Source§impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
Sourcepub fn server(self, value: impl Into<ServerAuth>) -> Self
pub fn server(self, value: impl Into<ServerAuth>) -> Self
Sets the input server; the last call wins.
Sourcepub fn identity(self, value: impl Into<&'a Identity>) -> Self
pub fn identity(self, value: impl Into<&'a Identity>) -> Self
Sets the input identity; the last call wins.
Sourcepub fn fill(self, partial: Partial<TlsSettings>) -> Self
pub fn fill(self, partial: Partial<TlsSettings>) -> Self
Lays partial over what is set: only the keys it sets are taken, and the last
write of a key wins.
Sourcepub fn parts(self) -> Result<ClientParts<'a>, Missing>
pub fn parts(self) -> Result<ClientParts<'a>, Missing>
The parts: the settings built, every required input present and every optional input as given. A second terminal (one that builds a different value from the same parts) is written over this.
§Errors
Everything that is missing, at once: the same Missing
that build gives.
Sourcepub fn build(
self,
) -> Result<Built<ClientConfig>, BuildError<<Built<ClientConfig> as TryFrom<ClientParts<'a>>>::Error>>
pub fn build( self, ) -> Result<Built<ClientConfig>, BuildError<<Built<ClientConfig> as TryFrom<ClientParts<'a>>>::Error>>
The built value, or everything that is missing: every required setting and every required input, at once.
§Errors
What is missing, or for a fallible build the error of the conversion.
Source§impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
Source§impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
impl<'a> ClientBuilder<'a>where
TlsSettings: Describe,
Sourcepub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
Every setting that differs from its default, as the builder would build it.
Source§impl<'a> ClientBuilder<'a>where
Self: Holds<TlsSettings>,
impl<'a> ClientBuilder<'a>where
Self: Holds<TlsSettings>,
Trait Implementations§
Source§impl<'a> Check<ClientBuilder<'a>> for Profilewhere
TlsSettings: Describe,
impl<'a> Check<ClientBuilder<'a>> for Profilewhere
TlsSettings: Describe,
Source§fn check(&self, subject: &ClientBuilder<'a>, report: &mut Report)
fn check(&self, subject: &ClientBuilder<'a>, report: &mut Report)
subject, pushing a Finding per expectation.Source§impl<'a> Configured for ClientBuilder<'a>where
TlsSettings: Describe,
impl<'a> Configured for ClientBuilder<'a>where
TlsSettings: Describe,
Source§type Settings = TlsSettings
type Settings = TlsSettings
Source§fn configured(&self) -> &dyn Inspect
fn configured(&self) -> &dyn Inspect
Inspect].