Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, Error>;
Expand description

A Result type specialized for rsactor operations.

This type is returned by most actor operations like tell, ask, stop, etc.

§Examples

use rsactor::Result;

fn actor_operation() -> Result<String> {
    // ... actor operation logic
    Ok("success".to_string())
}

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value