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 Constants§
sourceconst WOULD_BLOCK: Self::Error
const WOULD_BLOCK: Self::Error
The specific variant of the error type that indicates that an operation would block.
Required Associated Types§
Required Methods§
sourcefn setup_sleep(&self) -> ThreadSyncSleep
fn setup_sleep(&self) -> ThreadSyncSleep
Return a thread sync sleep operation specification for this handle.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.