pub struct LowResTime(/* private fields */);Implementations§
Source§impl LowResTime
impl LowResTime
pub fn with(resolution: Duration) -> LowResTime
pub fn timer(&self) -> LowResTimeService
Trait Implementations§
Source§impl Clone for LowResTime
impl Clone for LowResTime
Source§fn clone(&self) -> LowResTime
fn clone(&self) -> LowResTime
Returns a duplicate 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 LowResTime
impl Debug for LowResTime
Source§impl Default for LowResTime
impl Default for LowResTime
Source§impl ServiceFactory for LowResTime
impl ServiceFactory for LowResTime
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service
Source§type InitError = Infallible
type InitError = Infallible
Errors produced while building a service.
Source§type Service = LowResTimeService
type Service = LowResTimeService
The
Service value created by this factorySource§type Future = Ready<Result<<LowResTime as ServiceFactory>::Service, <LowResTime as ServiceFactory>::InitError>>
type Future = Ready<Result<<LowResTime as ServiceFactory>::Service, <LowResTime as ServiceFactory>::InitError>>
The future of the
Service instance.Source§fn new_service(&self, _: ()) -> Self::Future
fn new_service(&self, _: ()) -> Self::Future
Create and return a new service value asynchronously.
Source§fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
Map this service’s output to a different type, returning a new service
of the resulting type.
Source§fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
Map this service’s error to a different error, returning a new service.
Source§fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl Freeze for LowResTime
impl !RefUnwindSafe for LowResTime
impl !Send for LowResTime
impl !Sync for LowResTime
impl Unpin for LowResTime
impl !UnwindSafe for LowResTime
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory