AsyncProperty

Trait AsyncProperty 

Source
pub trait AsyncProperty<T> {
    type Output;

    // Required method
    fn test(
        &self,
        input: T,
    ) -> impl Future<Output = Result<Self::Output, PropertyError>> + Send;
}
Expand description

Async property trait for asynchronous testing

Required Associated Types§

Required Methods§

Source

fn test( &self, input: T, ) -> impl Future<Output = Result<Self::Output, PropertyError>> + Send

Test the property asynchronously with the given input

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§