Trait twizzler_async::AsyncSetup
source · 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§
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 Methods§
sourcefn setup_sleep(&self) -> ThreadSyncSleep
fn setup_sleep(&self) -> ThreadSyncSleep
Return a thread sync sleep operation specification for this handle.