[][src]Trait body_image_futio::BlockingArbiter

pub trait BlockingArbiter {
    fn can_block(&mut self) -> bool;
fn state(&self) -> Blocking; }

Trait for arbitration of where blocking operations are acceptable to the runtime.

Required methods

fn can_block(&mut self) -> bool

Return true if blocking is allowed.

This may record the need to block and/or consume any one-time blocking allowance.

fn state(&self) -> Blocking

Return the current blocking state, without making any change.

Loading content...

Implementors

impl BlockingArbiter for LenientArbiter[src]

fn can_block(&mut self) -> bool[src]

Return true if blocking is allowed.

This implementation always returns true.

impl BlockingArbiter for StatefulArbiter[src]

fn can_block(&mut self) -> bool[src]

Return true if blocking is allowed, consuming any one-time allowance. Otherwise records that blocking has been requested.

Loading content...