pub struct GlossError(pub Option<String>);Expand description
GlossError gloss error.
Tuple Fields§
§0: Option<String>Implementations§
Source§impl GlossError
impl GlossError
Sourcepub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
pub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
Problem constructor.
Sourcepub fn default_as_problem() -> Problem
pub fn default_as_problem() -> Problem
Problem constructor.
Trait Implementations§
Source§impl Clone for GlossError
impl Clone for GlossError
Source§fn clone(&self) -> GlossError
fn clone(&self) -> GlossError
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 GlossError
impl Debug for GlossError
Source§impl Default for GlossError
impl Default for GlossError
Source§fn default() -> GlossError
fn default() -> GlossError
Returns the “default value” for a type. Read more
Source§impl Display for GlossError
impl Display for GlossError
Source§impl Error for GlossError
impl Error for GlossError
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 GlossError
impl From<String> for GlossError
Source§impl Hash for GlossError
impl Hash for GlossError
Source§impl Ord for GlossError
impl Ord for GlossError
Source§impl PartialEq for GlossError
impl PartialEq for GlossError
Source§impl PartialOrd for GlossError
impl PartialOrd for GlossError
impl Eq for GlossError
Auto Trait Implementations§
impl Freeze for GlossError
impl RefUnwindSafe for GlossError
impl Send for GlossError
impl Sync for GlossError
impl Unpin for GlossError
impl UnsafeUnpin for GlossError
impl UnwindSafe for GlossError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.