Struct musli_binary_common::reader::SliceReaderError
source · [−]pub struct SliceReaderError(_);
Expand description
An error raised while decoding a slice.
Trait Implementations
sourceimpl Debug for SliceReaderError
impl Debug for SliceReaderError
sourceimpl Display for SliceReaderError
impl Display for SliceReaderError
sourceimpl Error for SliceReaderError
impl Error for SliceReaderError
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 missing_field<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn missing_field<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Missing a field of the given tag.
sourcefn unsupported_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
fn unsupported_tag<T>(type_name: &'static str, tag: T) -> Self where
T: Debug,
Encountered an unsupported number tag.
sourcefn invalid_value(type_name: &'static str) -> Self
fn invalid_value(type_name: &'static str) -> Self
Invalid value.
sourcefn unexpected_field(type_name: &'static str) -> Self
fn unexpected_field(type_name: &'static str) -> Self
Found an unexpected field.
sourceimpl Error for SliceReaderError
impl Error for SliceReaderError
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 SliceReaderError
impl Send for SliceReaderError
impl Sync for SliceReaderError
impl Unpin for SliceReaderError
impl UnwindSafe for SliceReaderError
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