#[non_exhaustive]pub struct PrimitiveError {
pub kind: PrimitiveErrorKind,
}Expand description
Error returned by primitive read operations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: PrimitiveErrorKindWhat specifically went wrong.
Implementations§
Source§impl PrimitiveError
impl PrimitiveError
Sourcepub const fn new(kind: PrimitiveErrorKind) -> Self
pub const fn new(kind: PrimitiveErrorKind) -> Self
Construct a PrimitiveError from its kind.
Trait Implementations§
Source§impl Debug for PrimitiveError
impl Debug for PrimitiveError
Source§impl Display for PrimitiveError
impl Display for PrimitiveError
Source§impl Error for PrimitiveError
impl Error for PrimitiveError
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<PrimitiveError> for BytesError
impl From<PrimitiveError> for BytesError
Source§fn from(err: PrimitiveError) -> Self
fn from(err: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for BytesErrorKind
impl From<PrimitiveError> for BytesErrorKind
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for ProtocolError
impl From<PrimitiveError> for ProtocolError
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for FrameError
impl From<PrimitiveError> for FrameError
Source§fn from(err: PrimitiveError) -> Self
fn from(err: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for FrameErrorKind
impl From<PrimitiveError> for FrameErrorKind
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for RecordError
impl From<PrimitiveError> for RecordError
Source§fn from(err: PrimitiveError) -> Self
fn from(err: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for RecordErrorKind
impl From<PrimitiveError> for RecordErrorKind
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for StringError
impl From<PrimitiveError> for StringError
Source§fn from(err: PrimitiveError) -> Self
fn from(err: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for StringErrorKind
impl From<PrimitiveError> for StringErrorKind
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveError> for TaggedFieldError
impl From<PrimitiveError> for TaggedFieldError
Source§fn from(source: PrimitiveError) -> Self
fn from(source: PrimitiveError) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveErrorKind> for PrimitiveError
impl From<PrimitiveErrorKind> for PrimitiveError
Source§fn from(kind: PrimitiveErrorKind) -> Self
fn from(kind: PrimitiveErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrimitiveError
impl RefUnwindSafe for PrimitiveError
impl Send for PrimitiveError
impl Sync for PrimitiveError
impl Unpin for PrimitiveError
impl UnsafeUnpin for PrimitiveError
impl UnwindSafe for PrimitiveError
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