pub enum TokenFormattingError {
Serialization(Error),
IO(Error),
}
Expand description
Error returned when a token cannot be formatted as a string.
This error can occur when serializing the header or payload, or when writing to the writer.
Variants§
Serialization(Error)
An error occured while serailizing the header or payload. This indicates that something is probably wrong with your custom header types.
IO(Error)
An error occured while writing to the writer.
Trait Implementations§
Source§impl Debug for TokenFormattingError
impl Debug for TokenFormattingError
Source§impl Display for TokenFormattingError
impl Display for TokenFormattingError
Source§impl Error for TokenFormattingError
impl Error for TokenFormattingError
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 TokenFormattingError
impl From<Error> for TokenFormattingError
Auto Trait Implementations§
impl Freeze for TokenFormattingError
impl !RefUnwindSafe for TokenFormattingError
impl Send for TokenFormattingError
impl Sync for TokenFormattingError
impl Unpin for TokenFormattingError
impl !UnwindSafe for TokenFormattingError
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