Trait PayloadAction

Source
pub trait PayloadAction: Clone {
    type ReturnType: Clone;

    // Required method
    async fn execute<T: PipeRead + PipeWrite + Unpin + Send>(
        &self,
        pipe: &mut T,
    ) -> Result<Self::ReturnType, PipeError>;
}

Required Associated Types§

Required Methods§

Source

async fn execute<T: PipeRead + PipeWrite + Unpin + Send>( &self, pipe: &mut T, ) -> Result<Self::ReturnType, PipeError>

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§