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;
}