pub enum ReplyError {
UnreadableResult,
}Expand description
Why a reply could not be assembled.
Variants§
UnreadableResult
The result could not be read back as JSON.
Unreachable for a JsonObject, which validated the text it stores.
It is a variant rather than an unwrap because the alternative is a
claim this module cannot make: a future constructor that stored
something it had not parsed would turn that unwrap into a panic on a
path that runs for every reply a server ever sends.
Trait Implementations§
Source§impl Clone for ReplyError
impl Clone for ReplyError
impl Copy for ReplyError
Source§impl Debug for ReplyError
impl Debug for ReplyError
Source§impl Display for ReplyError
impl Display for ReplyError
impl Eq for ReplyError
Source§impl Error for ReplyError
impl Error for ReplyError
1.30.0 · 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 PartialEq for ReplyError
impl PartialEq for ReplyError
impl StructuralPartialEq for ReplyError
Auto Trait Implementations§
impl Freeze for ReplyError
impl RefUnwindSafe for ReplyError
impl Send for ReplyError
impl Sync for ReplyError
impl Unpin for ReplyError
impl UnsafeUnpin for ReplyError
impl UnwindSafe for ReplyError
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