trait ResultTanyhowErrorExt<T> {
// Required method
fn wrap_for_ratelimit(self) -> Result<T, RateLimitError>;
}Expand description
Wraps a Result containing an anyhow::Error into a Result
containing a Sized RateLimitError to allow usage with log_ratelim!.
Required Methods§
Sourcefn wrap_for_ratelimit(self) -> Result<T, RateLimitError>
fn wrap_for_ratelimit(self) -> Result<T, RateLimitError>
Wraps an anyhow::Error into a Sized RateLimitError
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T> ResultTanyhowErrorExt<T> for Result<T, Error>
Wraps a Result containing an anyhow::Error into a Result
containing a Sized RateLimitError to allow usage with log_ratelim!.
impl<T> ResultTanyhowErrorExt<T> for Result<T, Error>
Wraps a Result containing an anyhow::Error into a Result
containing a Sized RateLimitError to allow usage with log_ratelim!.
Source§fn wrap_for_ratelimit(self) -> Result<T, RateLimitError>
fn wrap_for_ratelimit(self) -> Result<T, RateLimitError>
Wraps an anyhow::Error into a Sized RateLimitError