pub enum ClientSerdeError {
HttpError(Error),
JsonError(Error),
}Available on crate features
serde_json or sonic-rs only.Expand description
A wrapper error for trillium_http::Error or, depending on json serializer feature, either
sonic_rs::Error or serde_json::Error. Only available when either the sonic-rs or
serde_json cargo features are enabled.
Variants§
Trait Implementations§
Source§impl Debug for ClientSerdeError
impl Debug for ClientSerdeError
Source§impl Display for ClientSerdeError
impl Display for ClientSerdeError
Source§impl Error for ClientSerdeError
impl Error for ClientSerdeError
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<Error> for ClientSerdeError
impl From<Error> for ClientSerdeError
Auto Trait Implementations§
impl Freeze for ClientSerdeError
impl !RefUnwindSafe for ClientSerdeError
impl Send for ClientSerdeError
impl Sync for ClientSerdeError
impl Unpin for ClientSerdeError
impl UnsafeUnpin for ClientSerdeError
impl !UnwindSafe for ClientSerdeError
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