Struct actix_net::timer::LowResTimerService [−][src]
pub struct LowResTimerService(_);
Methods
impl LowResTimerService[src]
impl LowResTimerServicepub fn with(resolution: Duration) -> LowResTimerService[src]
pub fn with(resolution: Duration) -> LowResTimerServicepub fn now(&mut self) -> Instant[src]
pub fn now(&mut self) -> InstantGet current time. This function has to be called from future's poll method, otherwise it panics.
Trait Implementations
impl Clone for LowResTimerService[src]
impl Clone for LowResTimerServicefn clone(&self) -> LowResTimerService[src]
fn clone(&self) -> LowResTimerServiceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for LowResTimerService[src]
impl Debug for LowResTimerServicefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Service for LowResTimerService[src]
impl Service for LowResTimerServicetype Request = ()
Requests handled by the service.
type Response = Instant
Responses given by the service.
type Error = Never
Errors produced by the service.
type Future = FutureResult<Self::Response, Self::Error>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, _: ()) -> Self::Future[src]
fn call(&mut self, _: ()) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.
Auto Trait Implementations
impl !Send for LowResTimerService
impl !Send for LowResTimerServiceimpl !Sync for LowResTimerService
impl !Sync for LowResTimerService