scsys_core/error.rs
1/*
2 Appellation: error <module>
3 Contrib: @FL03
4*/
5//! ths module implements various error-handling primitives and utilities
6//!
7#[cfg(feature = "alloc")]
8pub use self::std_error::StdError;
9#[doc(inline)]
10pub use self::{core_error::*, raw_error::*};
11
12/// this module implements an enumerated error type used throughout the sdk
13mod core_error;
14/// the this module implements a raw, generic error type wrapper
15mod raw_error;
16/// this module implements an alternative error type that uses some kind to distinguish
17/// between different error types
18#[cfg(feature = "alloc")]
19mod std_error;
20
21/// this trait is used to denote various _error kinds_ for use throughout the sdk
22pub trait ErrorKind: Send + Sync + core::fmt::Debug + core::fmt::Display {
23 private!();
24}
25
26impl<T> ErrorKind for T
27where
28 T: Send + Sync + core::fmt::Debug + core::fmt::Display,
29{
30 seal!();
31}