pub struct Error<FactoryError: Fail + Debug, SlaveError: Fail + Debug> {
pub factory: Option<FactoryError>,
pub slave: Option<SlaveError>,
}Expand description
An error when the retry adaptor fails.
It wasn’t possible to log the record (or initialize it when starting). Usually that means it wasn’t possible to create the drain at all or that each newly created drain failed.
Fields§
§factory: Option<FactoryError>The last error during creation of a new drain, if any.
slave: Option<SlaveError>The last error during logging attempt, if any.
Trait Implementations§
Source§impl<FactoryError: Debug + Fail + Debug, SlaveError: Debug + Fail + Debug> Debug for Error<FactoryError, SlaveError>
impl<FactoryError: Debug + Fail + Debug, SlaveError: Debug + Fail + Debug> Debug for Error<FactoryError, SlaveError>
Source§impl<FactoryError, SlaveError> Fail for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> Fail for Error<FactoryError, SlaveError>
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl<FactoryError, SlaveError> Freeze for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> RefUnwindSafe for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> Send for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> Sync for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> Unpin for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> UnsafeUnpin for Error<FactoryError, SlaveError>
impl<FactoryError, SlaveError> UnwindSafe for Error<FactoryError, SlaveError>
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