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,

Implementations on Foreign Types§

source§

impl<T> ActorContext<T> for Result<T, 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§