Struct tokio_threadpool::park::DefaultPark
[−]
[src]
pub struct DefaultPark { /* fields omitted */ }Parks the thread.
Methods
impl DefaultPark[src]
pub fn new() -> DefaultPark[src]
Creates a new DefaultPark instance.
Trait Implementations
impl Debug for DefaultPark[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Park for DefaultPark[src]
type Unpark = DefaultUnpark
Unpark handle type for the Park implementation.
type Error = ParkError
Error returned by park
fn unpark(&self) -> Self::Unpark[src]
Get a new Unpark handle associated with this Park instance.
fn park(&mut self) -> Result<(), Self::Error>[src]
Block the current thread unless or until the token is available. Read more
fn park_timeout(&mut self, duration: Duration) -> Result<(), Self::Error>[src]
Park the current thread for at most duration. Read more