Trait Modifier

Source
pub trait Modifier<T> {
    type Modified: Clone + Send + Sync;
    type Error;

    // Required method
    fn modify(
        &self,
        value: T,
    ) -> impl Future<Output = Result<Self::Modified, Self::Error>> + Send;
}

Required Associated Types§

Required Methods§

Source

fn modify( &self, value: T, ) -> impl Future<Output = Result<Self::Modified, Self::Error>> + Send

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§