pub struct HostTime(/* private fields */);Expand description
A shared wall clock that only the host advances.
Every connection made from a configuration stores the unix_seconds passed to
its process call here, and rustls reads it back through
time_provider when checking certificate validity.
Pass that provider to rustls::ClientConfig::builder_with_details (or the
server equivalent) before handing the result to from_rustls.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for HostTime
impl Freeze for HostTime
impl RefUnwindSafe for HostTime
impl Send for HostTime
impl Sync for HostTime
impl Unpin for HostTime
impl UnsafeUnpin for HostTime
impl UnwindSafe for HostTime
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