Trait Waitable

Source
pub trait Waitable {
    // Required method
    async fn wait(&self, options: &WaitOptions) -> Result<()>;
}
Expand description

A Waitable is an resource that can be waited on.

Every [Resource] must implement this trait.

§Should not be implemented by the user

This trait should not be implemented by the user, instead, it should be implemented by the [Resource] enum variants in the lib scope.

Required Methods§

Source

async fn wait(&self, options: &WaitOptions) -> Result<()>

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§