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