Struct actix_net::timer::LowResTimerService [−][src]
pub struct LowResTimerService(_);
Methods
impl LowResTimerService
[src]
impl LowResTimerService
pub fn with(resolution: Duration) -> LowResTimerService
[src]
pub fn with(resolution: Duration) -> LowResTimerService
pub fn now(&mut self) -> Instant
[src]
pub fn now(&mut self) -> Instant
Get 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 LowResTimerService
fn clone(&self) -> LowResTimerService
[src]
fn clone(&self) -> LowResTimerService
Returns 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 LowResTimerService
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Service for LowResTimerService
[src]
impl Service for LowResTimerService
type 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::Future
Process 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 LowResTimerService
impl !Sync for LowResTimerService
impl !Sync for LowResTimerService