pub trait AsyncSetup {
    type Error: PartialEq;

    const WOULD_BLOCK: Self::Error;

    // Required method
    fn setup_sleep(&self) -> ThreadSyncSleep;
}
Expand description

Implement setting up externally signaled asynchronous events for the async runner to wait for, in the case where there is a single “runnable” abstraction for this object.

Required Associated Types§

source

type Error: PartialEq

The error type returned by any closures run.

Required Associated Constants§

source

const WOULD_BLOCK: Self::Error

The specific variant of the error type that indicates that an operation would block.

Required Methods§

source

fn setup_sleep(&self) -> ThreadSyncSleep

Return a thread sync sleep operation specification for this handle.

Implementors§