pub struct Error {
pub msg: Option<String>,
pub tags: Vec<Tag>,
pub response: Option<Box<Response>>,
pub time: SystemTime,
pub backtrace: Option<Box<Backtrace>>,
}Fields§
§msg: Option<String>§response: Option<Box<Response>>§time: SystemTime§backtrace: Option<Box<Backtrace>>Implementations§
Source§impl Error
impl Error
pub fn new() -> Self
pub fn server_error(msg: impl Into<String>) -> Self
pub fn client_error(response: Response) -> Self
pub fn with_backtrace(self) -> Self
pub fn with_msg(self, msg: impl Into<String>) -> Self
pub fn with_response(self, response: Response) -> Self
pub fn with_tag(self, name: &'static str, value: impl Into<TagValue>) -> Self
Trait Implementations§
Source§impl From<LoggerStoppedError> for Error
impl From<LoggerStoppedError> for Error
Source§fn from(_: LoggerStoppedError) -> Self
fn from(_: LoggerStoppedError) -> Self
Converts to this type from the input type.
impl Eq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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