AnyResult

Type Alias AnyResult 

Source
pub type AnyResult<T, E = AnyError> = Result<T, E>;
Expand description

A type alias for Result<T, E> where E defaults to AnyError.

This type provides a convenient way to return results that can contain any error type, defaulting to AnyError if no specific error type is specified.

§Type Parameters

  • T - The type of the successful result.
  • E - The error type, defaulting to AnyError.

Aliased Type§

pub enum AnyResult<T, E = AnyError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value