pub struct SerializationError(pub Option<String>);Expand description
SerializationError gloss error.
Tuple Fields§
§0: Option<String>Implementations§
Source§impl SerializationError
impl SerializationError
Sourcepub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
pub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
Constructor.
Sourcepub fn default_as_problem() -> Problem
pub fn default_as_problem() -> Problem
Constructor.
Trait Implementations§
Source§impl Clone for SerializationError
impl Clone for SerializationError
Source§fn clone(&self) -> SerializationError
fn clone(&self) -> SerializationError
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 SerializationError
impl Debug for SerializationError
Source§impl Default for SerializationError
impl Default for SerializationError
Source§fn default() -> SerializationError
fn default() -> SerializationError
Returns the “default value” for a type. Read more
Source§impl Display for SerializationError
impl Display for SerializationError
Source§impl Error for SerializationError
impl Error for SerializationError
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 From<String> for SerializationError
impl From<String> for SerializationError
Source§impl Hash for SerializationError
impl Hash for SerializationError
Source§impl Ord for SerializationError
impl Ord for SerializationError
Source§impl PartialEq for SerializationError
impl PartialEq for SerializationError
Source§impl PartialOrd for SerializationError
impl PartialOrd for SerializationError
impl Eq for SerializationError
Auto Trait Implementations§
impl Freeze for SerializationError
impl RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl UnwindSafe for SerializationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<ToStringT> IntoCommonProblem for ToStringTwhere
ToStringT: ToString,
impl<ToStringT> IntoCommonProblem for ToStringTwhere
ToStringT: ToString,
Source§fn gloss(self) -> Problem
fn gloss(self) -> Problem
Into a GlossError problem.
Source§fn into_thread_problem(self) -> Problem
fn into_thread_problem(self) -> Problem
Into a ThreadError problem.
Source§impl<ErrorT> IntoProblem for ErrorT
impl<ErrorT> IntoProblem for ErrorT
Source§fn into_problem(self) -> Problem
fn into_problem(self) -> Problem
Into a Problem.
Source§impl<ErrorT> IntoSerdeProblem for ErrorT
impl<ErrorT> IntoSerdeProblem for ErrorT
Source§fn into_serde_serialize_problem(self) -> SerdeProblem
fn into_serde_serialize_problem(self) -> SerdeProblem
Available on crate feature
serde only.Source§fn into_serde_deserialize_problem(self) -> SerdeProblem
fn into_serde_deserialize_problem(self) -> SerdeProblem
Available on crate feature
serde only.Source§impl<ErrorT> IterateErrorSources for ErrorTwhere
ErrorT: 'static + Error,
impl<ErrorT> IterateErrorSources for ErrorTwhere
ErrorT: 'static + Error,
Source§fn iter_sources<'this>(&'this self) -> ErrorSourceIterator<'this> ⓘ
fn iter_sources<'this>(&'this self) -> ErrorSourceIterator<'this> ⓘ
Iterate the Error::source chain.