pub struct DateService;Expand description
Generates the cached HTTP Date header used by the protocol encoders.
The cached value is refreshed periodically and avoids formatting the current system time for every response. Applications normally do not need to use this type directly.
Trait Implementations§
Source§impl Clone for DateService
impl Clone for DateService
Source§fn clone(&self) -> DateService
fn clone(&self) -> DateService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DateService
Auto Trait Implementations§
impl Freeze for DateService
impl RefUnwindSafe for DateService
impl Send for DateService
impl Sync for DateService
impl Unpin for DateService
impl UnsafeUnpin for DateService
impl UnwindSafe for DateService
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