Struct musli_binary_common::writer::VecWriterError
source · [−]pub struct VecWriterError(_);
Expand description
An error raised while decoding a slice.
Trait Implementations
sourceimpl Debug for VecWriterError
impl Debug for VecWriterError
sourceimpl Display for VecWriterError
impl Display for VecWriterError
sourceimpl Error for VecWriterError
impl Error for VecWriterError
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 message<T>(message: T) -> Self where
T: Display,
fn message<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 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.
sourcefn invalid_field_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn invalid_field_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Encountered an unsupported number tag.
sourcefn invalid_variant_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn invalid_variant_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Indicate that a variant wasn’t supported by tag.
sourcefn invalid_variant_field_tag<V, T>(
type_name: &'static str,
variant: V,
tag: T
) -> Self where
V: Debug,
T: Debug,
fn invalid_variant_field_tag<V, T>(
type_name: &'static str,
variant: V,
tag: T
) -> Self where
V: Debug,
T: Debug,
Encountered an unsupported variant field.
sourceimpl Error for VecWriterError
impl Error for VecWriterError
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 VecWriterError
impl Send for VecWriterError
impl Sync for VecWriterError
impl Unpin for VecWriterError
impl UnwindSafe for VecWriterError
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