Type Alias tonic::Result

source ·
pub type Result<T, E = Status> = Result<T, E>;
Expand description

Result is a type that represents either success (Ok) or failure (Err). By default, the Err value is of type Status but this can be overridden if desired.

Aliased Type§

enum Result<T, E = Status> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value