Trait fil_actors_shared::v11::actor_error::ActorContext

source ·
pub trait ActorContext<T> {
    // Required methods
    fn context<C>(self, context: C) -> Result<T, ActorError>
       where C: Display + 'static;
    fn with_context<C, F>(self, f: F) -> Result<T, ActorError>
       where C: Display + 'static,
             F: FnOnce() -> C;
}

Required Methods§

source

fn context<C>(self, context: C) -> Result<T, ActorError>
where C: Display + 'static,

source

fn with_context<C, F>(self, f: F) -> Result<T, ActorError>
where C: Display + 'static, F: FnOnce() -> C,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, E> ActorContext<T> for Result<T, E>
where E: Into<ActorError>,

source§

fn context<C>(self, context: C) -> Result<T, ActorError>
where C: Display + 'static,

source§

fn with_context<C, F>(self, f: F) -> Result<T, ActorError>
where C: Display + 'static, F: FnOnce() -> C,

Implementors§