pub struct OwnedError(/* private fields */);Expand description
Owned version of Error for use with the chain API.
This is a newtype wrapper around Error<'static>, allowing it to be deserialized as owned data.
This is required for the chain API because the internal buffer may be reused between stream
iterations.
Implementations§
Source§impl OwnedError
impl OwnedError
Trait Implementations§
Source§impl Clone for OwnedError
impl Clone for OwnedError
Source§fn clone(&self) -> OwnedError
fn clone(&self) -> OwnedError
Returns a duplicate 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 OwnedError
impl Debug for OwnedError
Source§impl Deref for OwnedError
impl Deref for OwnedError
Source§impl DerefMut for OwnedError
impl DerefMut for OwnedError
Source§impl<'de> Deserialize<'de> for OwnedError
impl<'de> Deserialize<'de> for OwnedError
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OwnedError
impl Display for OwnedError
Source§impl Error for OwnedError
impl Error for OwnedError
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<'a> From<Error<'a>> for OwnedError
impl<'a> From<Error<'a>> for OwnedError
Source§impl PartialEq for OwnedError
impl PartialEq for OwnedError
Source§impl Serialize for OwnedError
impl Serialize for OwnedError
impl StructuralPartialEq for OwnedError
Auto Trait Implementations§
impl Freeze for OwnedError
impl RefUnwindSafe for OwnedError
impl Send for OwnedError
impl Sync for OwnedError
impl Unpin for OwnedError
impl UnwindSafe for OwnedError
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