[][src]Trait body_image_futio::BlockingArbiter

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

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

Required methods

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

Return true if blocking is allowed.

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

pub fn state(&self) -> Blocking[src]

Return the current blocking state, without making any change.

Loading content...

Implementors

impl BlockingArbiter for LenientArbiter[src]

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

Return true if blocking is allowed.

This implementation always returns true.

impl BlockingArbiter for StatefulArbiter[src]

pub 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...