#[non_exhaustive]pub enum RexLoggerError {
InitializationError {
reason: String,
source: Option<Box<dyn SourceError + Send + Sync>>,
},
Other(Error),
}Expand description
Represents errors that can occur during Rex logger operations.
This enum provides specific error variants for different types of failures that can occur during logging operations
§Variants
InitializationError- Error during logger initializationOther-Anyhowfor other errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InitializationError
Error indicating an initialization error
§Fields
reason- Description of errorsource- Underlying error that caused the failure
Other(Error)
Anyhow for other errors
Trait Implementations§
Source§impl Debug for RexLoggerError
impl Debug for RexLoggerError
Source§impl Display for RexLoggerError
impl Display for RexLoggerError
Source§impl Error for RexLoggerError
impl Error for RexLoggerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for RexLoggerError
impl From<Error> for RexLoggerError
Source§fn from(source: AnyhowError) -> Self
fn from(source: AnyhowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RexLoggerError
impl !RefUnwindSafe for RexLoggerError
impl Send for RexLoggerError
impl Sync for RexLoggerError
impl Unpin for RexLoggerError
impl UnsafeUnpin for RexLoggerError
impl !UnwindSafe for RexLoggerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more