twizzler_async

Trait 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 Constants§

source

const WOULD_BLOCK: Self::Error

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

Required Associated Types§

source

type Error: PartialEq

The error type returned by any closures run.

Required Methods§

source

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.

Implementors§