Trait ResultExt

Source
pub trait ResultExt: Sealed + Sized {
    // Required method
    fn internal(self) -> Result<Self::Value>;
}
Expand description

Extension methods on Result.

Required Methods§

Source

fn internal(self) -> Result<Self::Value>

Converts this result to an internal error.

Used when an unrecoverable error happens.

See internal_error for more information.

§Errors

Returns Err if self is Err.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, E> ResultExt for Result<T, E>
where E: Error + Send + Sync + 'static,