Enum body_image_futio::BlockingPolicy [−][src]
pub enum BlockingPolicy {
Direct,
Permit(&'static Semaphore),
Dispatch,
}
Expand description
The policy for blocking operations.
Variants
Always run blocking operations directly and without further coordination.
Permit(&'static Semaphore)
Acquire a BlockingPermit
from the referenced Semaphore
and use this
to run the blocking operation on the current thread.
Tuple Fields of Permit
0: &'static Semaphore
Dispatch blocking operations to the blocking_permit::DispatchPool
registered on the current thread.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BlockingPolicy
impl Send for BlockingPolicy
impl Sync for BlockingPolicy
impl Unpin for BlockingPolicy
impl !UnwindSafe for BlockingPolicy
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more