Struct aldrin::error::InvalidItem
source · pub struct InvalidItem { /* private fields */ }
Expand description
An invalid item was received on a channel.
This can indicate a schema mismatch.
Implementations§
source§impl InvalidItem
impl InvalidItem
sourcepub fn new(source: DeserializeError) -> Self
pub fn new(source: DeserializeError) -> Self
Creates a new InvalidItem
error.
Trait Implementations§
source§impl Clone for InvalidItem
impl Clone for InvalidItem
source§fn clone(&self) -> InvalidItem
fn clone(&self) -> InvalidItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidItem
impl Debug for InvalidItem
source§impl Display for InvalidItem
impl Display for InvalidItem
source§impl Error for InvalidItem
impl Error for InvalidItem
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DeserializeError> for InvalidItem
impl From<DeserializeError> for InvalidItem
source§fn from(source: DeserializeError) -> Self
fn from(source: DeserializeError) -> Self
Converts to this type from the input type.
source§impl From<InvalidItem> for Error
impl From<InvalidItem> for Error
source§fn from(source: InvalidItem) -> Self
fn from(source: InvalidItem) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidItem
impl PartialEq for InvalidItem
source§fn eq(&self, other: &InvalidItem) -> bool
fn eq(&self, other: &InvalidItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InvalidItem
impl Eq for InvalidItem
impl StructuralPartialEq for InvalidItem
Auto Trait Implementations§
impl Freeze for InvalidItem
impl RefUnwindSafe for InvalidItem
impl Send for InvalidItem
impl Sync for InvalidItem
impl Unpin for InvalidItem
impl UnwindSafe for InvalidItem
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