pub enum InvalidFormatError {
Unknown(String),
}Expand description
Error returned by get_writer when an unrecognised format string is supplied.
Named to mirror the Python InvalidFormatError and TypeScript InvalidFormatError
exports for cross-SDK symbol parity.
Variants§
Unknown(String)
The format string does not map to a known OutputFormat variant.
Trait Implementations§
Source§impl Debug for InvalidFormatError
impl Debug for InvalidFormatError
Source§impl Display for InvalidFormatError
impl Display for InvalidFormatError
Source§impl Error for InvalidFormatError
impl Error for InvalidFormatError
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 InvalidFormatError
impl PartialEq for InvalidFormatError
Source§fn eq(&self, other: &InvalidFormatError) -> bool
fn eq(&self, other: &InvalidFormatError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidFormatError
Auto Trait Implementations§
impl Freeze for InvalidFormatError
impl RefUnwindSafe for InvalidFormatError
impl Send for InvalidFormatError
impl Sync for InvalidFormatError
impl Unpin for InvalidFormatError
impl UnsafeUnpin for InvalidFormatError
impl UnwindSafe for InvalidFormatError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.