Struct tokio_threadpool::park::DefaultPark [−][src]
pub struct DefaultPark { /* fields omitted */ }
Parks the thread.
Methods
impl DefaultPark
[src]
impl DefaultPark
pub fn new() -> DefaultPark
[src]
pub fn new() -> DefaultPark
Creates a new DefaultPark
instance.
Trait Implementations
impl Debug for DefaultPark
[src]
impl Debug for DefaultPark
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 Park for DefaultPark
[src]
impl Park for DefaultPark
type 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::Unpark
Get 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 DefaultPark
impl Sync for DefaultPark
impl Sync for DefaultPark