Trait fil_actors_shared::v11::actor_error::AsActorError
source · pub trait AsActorError<T>: Sized {
// Required methods
fn exit_code(self, code: ExitCode) -> Result<T, ActorError>;
fn context_code<C>(
self,
code: ExitCode,
context: C,
) -> Result<T, ActorError>
where C: Display + 'static;
fn with_context_code<C, F>(
self,
code: ExitCode,
f: F,
) -> Result<T, ActorError>
where C: Display + 'static,
F: FnOnce() -> C;
}
Required Methods§
fn exit_code(self, code: ExitCode) -> Result<T, ActorError>
fn context_code<C>(self, code: ExitCode, context: C) -> Result<T, ActorError>where
C: Display + 'static,
fn with_context_code<C, F>(self, code: ExitCode, f: F) -> Result<T, ActorError>
Object Safety§
This trait is not object safe.