from

Function from 

Source
pub fn from<T: Into<Error>>(err: T) -> Error
Expand description

Create a new [Error] from a given error.