pub struct DefaultSystemTimer;
Expand description
Default implementation of SystemTimer
Trait Implementations§
Source§impl Clone for DefaultSystemTimer
impl Clone for DefaultSystemTimer
Source§fn clone(&self) -> DefaultSystemTimer
fn clone(&self) -> DefaultSystemTimer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultSystemTimer
impl Debug for DefaultSystemTimer
Source§impl Default for DefaultSystemTimer
impl Default for DefaultSystemTimer
Source§fn default() -> DefaultSystemTimer
fn default() -> DefaultSystemTimer
Returns the “default value” for a type. Read more
Source§impl SystemTimer for DefaultSystemTimer
impl SystemTimer for DefaultSystemTimer
Source§fn current_time_millis(&self) -> i64
fn current_time_millis(&self) -> i64
Returns the time duration since UNIX_EPOCH in milliseconds.
Source§fn current_time_rfc3339(&self) -> String
fn current_time_rfc3339(&self) -> String
Returns the current time in rfc3339 format.
impl Copy for DefaultSystemTimer
Auto Trait Implementations§
impl Freeze for DefaultSystemTimer
impl RefUnwindSafe for DefaultSystemTimer
impl Send for DefaultSystemTimer
impl Sync for DefaultSystemTimer
impl Unpin for DefaultSystemTimer
impl UnwindSafe for DefaultSystemTimer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].