pub struct FixedBytesWriterError(_);
Expand description
An error raised while decoding a slice.
Trait Implementations
sourceimpl Debug for FixedBytesWriterError
impl Debug for FixedBytesWriterError
sourceimpl Display for FixedBytesWriterError
impl Display for FixedBytesWriterError
sourceimpl Error for FixedBytesWriterError
impl Error for FixedBytesWriterError
sourcefn custom<T>(message: T) -> Self where
T: 'static + Send + Sync + Display + Debug,
fn custom<T>(message: T) -> Self where
T: 'static + Send + Sync + Display + Debug,
Construct a custom error.
sourcefn collect_from_display<T>(message: T) -> Self where
T: Display,
fn collect_from_display<T>(message: T) -> Self where
T: Display,
Collect an error from something that can be displayed. Read more
sourcefn uninhabitable(type_name: &'static str) -> Self
fn uninhabitable(type_name: &'static str) -> Self
Trying to decode an uninhabitable type.
sourcefn unsupported_variant<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn unsupported_variant<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Indicate that a variant wasn’t supported by tag.
sourcefn unsupported_field<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn unsupported_field<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Encountered an unsupported number tag.
sourcefn unsupported_variant_field<V, T>(
type_name: &'static str,
variant: V,
tag: T
) -> Self where
V: Debug,
T: Debug,
fn unsupported_variant_field<V, T>(
type_name: &'static str,
variant: V,
tag: T
) -> Self where
V: Debug,
T: Debug,
Encountered an unsupported variant field.
sourcefn unexpected_field(type_name: &'static str) -> Self
fn unexpected_field(type_name: &'static str) -> Self
Found an unexpected field.
sourcefn expected_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn expected_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
The value for the given tag could not be collected.
sourceimpl Error for FixedBytesWriterError
impl Error for FixedBytesWriterError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for FixedBytesWriterError
impl Send for FixedBytesWriterError
impl Sync for FixedBytesWriterError
impl Unpin for FixedBytesWriterError
impl UnwindSafe for FixedBytesWriterError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more