pub struct Error { /* private fields */ }Implementations§
source§impl Error
impl Error
pub fn new(kind: ErrorKind, message: Option<impl Display>) -> Self
pub fn io(e: impl Display) -> Self
pub fn data(e: impl Display) -> Self
pub fn access(e: impl Display) -> Self
pub fn not_supported(e: impl Display) -> Self
pub fn not_registered() -> Self
pub fn not_delivered() -> Self
pub fn timeout() -> Self
pub fn busy(e: impl Display) -> Self
pub fn kind(&self) -> ErrorKind
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(e: TryFromSliceError) -> Error
fn from(e: TryFromSliceError) -> Error
Converts to this type from the input type.