pub struct LogfmtError {
pub position: usize,
pub message: &'static str,
}Expand description
An error produced during logfmt parsing.
Fields§
§position: usizeByte offset in the input where the error occurred.
message: &'static strHuman-readable description of what went wrong.
Trait Implementations§
Source§impl Clone for LogfmtError
impl Clone for LogfmtError
Source§fn clone(&self) -> LogfmtError
fn clone(&self) -> LogfmtError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogfmtError
impl Debug for LogfmtError
Source§impl Display for LogfmtError
impl Display for LogfmtError
impl Eq for LogfmtError
Source§impl Error for LogfmtError
impl Error for LogfmtError
1.30.0 · 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 PartialEq for LogfmtError
impl PartialEq for LogfmtError
impl StructuralPartialEq for LogfmtError
Auto Trait Implementations§
impl Freeze for LogfmtError
impl RefUnwindSafe for LogfmtError
impl Send for LogfmtError
impl Sync for LogfmtError
impl Unpin for LogfmtError
impl UnsafeUnpin for LogfmtError
impl UnwindSafe for LogfmtError
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