ActorResult

Type Alias ActorResult 

Source
pub type ActorResult<T> = Result<Produces<T>, ActorError>;
Expand description

Short alias for a Result<Produces<T>, ActorError>.

Aliased Type§

pub enum ActorResult<T> {
    Ok(Produces<T>),
    Err(Box<dyn Error + Send + Sync>),
}

Variants§

§1.0.0

Ok(Produces<T>)

Contains the success value

§1.0.0

Err(Box<dyn Error + Send + Sync>)

Contains the error value

Trait Implementations§

Source§

impl<T> IntoActorResult for ActorResult<T>

Source§

type Output = T

The type to be sent back to the caller.
Source§

fn into_actor_result(self) -> ActorResult<T>

Perform the conversion to an ActorResult.