from

Function from 

Source
pub fn from(err: impl Error + 'static) -> Error
Expand description

Maps arbitrary errors into an Error.

Handles common error types and wraps unknown errors as Internal.