Lines Matching refs:Error
7 use thiserror::Error;
9 pub type Result<T> = std::result::Result<T, Error>;
11 #[derive(Error, Debug, PartialEq)]
13 pub enum Error { enum
124 impl Error { implementation
127 T: std::error::Error + Send + Sync + 'static, in from_std()
129 Error::Std(StdError(Box::new(error))) in from_std()
132 pub fn downcast_ref<T: std::error::Error + 'static>(&self) -> Option<&T> { in downcast_ref()
133 if let Error::Std(s) = self { in downcast_ref()
141 #[derive(Debug, Error)]
143 pub struct IoError(#[from] pub io::Error);
152 impl From<io::Error> for Error { implementation
153 fn from(e: io::Error) -> Self { in from()
154 Error::Io(IoError(e)) in from()
166 #[derive(Debug, Error)]
168 pub struct StdError(pub Box<dyn std::error::Error + Send + Sync>);