cc_utils/
results.rs

1//! Result types for `ErrorResponse` (`salvo`) and `CliError` (`reqwest`) errors.
2
3#[cfg(feature = "salvo")]
4use crate::errors::ErrorResponse;
5
6#[cfg(feature = "salvo")]
7pub type MResult<T> = Result<T, ErrorResponse>;
8
9#[cfg(feature = "reqwest")]
10#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
11use crate::errors::CliError;
12
13#[cfg(feature = "reqwest")]
14#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
15pub type CResult<T> = Result<T, CliError>;