pub trait MemoizedAgent: Memoized {
    type Input;

    // Required method
    async fn computation(&mut self, input: Self::Input) -> Self::Output;

    // Provided method
    async fn compute(&mut self, input: Self::Input) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

source

async fn computation(&mut self, input: Self::Input) -> Self::Output

Provided Methods§

source

async fn compute(&mut self, input: Self::Input) -> Self::Output

Object Safety§

This trait is not object safe.

Implementors§