pub trait TryComputer<Context, Code, Input>: IsProviderFor<TryComputerComponent, Context, (Code, Input)>where
Context: HasErrorType,{
type Output;
// Required method
fn try_compute(
context: &Context,
_code: PhantomData<Code>,
input: Input,
) -> Result<Self::Output, Context::Error>;
}Required Associated Types§
Required Methods§
fn try_compute( context: &Context, _code: PhantomData<Code>, input: Input, ) -> Result<Self::Output, Context::Error>
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.