1 2 3 4 5
/// Represents a general error type pub type Error = Box<dyn std::error::Error + Sync + Send>; /// Represents an alias for standard library `Result` with error type of `Box<dyn Error>`. pub type Result<T> = std::result::Result<T, Error>;
1 2 3 4 5
/// Represents a general error type pub type Error = Box<dyn std::error::Error + Sync + Send>; /// Represents an alias for standard library `Result` with error type of `Box<dyn Error>`. pub type Result<T> = std::result::Result<T, Error>;