pub struct ClientConfig { /* private fields */ }Implementations§
Source§impl ClientConfig
impl ClientConfig
pub fn new(options: ClientOptions, unix_seconds: u64) -> Result<Self, Error>
Sourcepub fn from_rustls(config: Arc<ClientConfig>, time: HostTime) -> Self
pub fn from_rustls(config: Arc<ClientConfig>, time: HostTime) -> Self
Wrap a rustls configuration the host built itself. Build it with
builder_with_details(provider, time.time_provider()) so certificate
validity follows the time passed to process; with any other time
provider rustls keeps using that one, and process only updates time.
pub fn rustls_config(&self) -> &Arc<ClientConfig> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClientConfig
impl !UnwindSafe for ClientConfig
impl Forget for ClientConfig
impl Freeze for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
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