pub struct TbErrorKind(/* private fields */);
Expand description
Error kind type.
See the [kinds] module for error kind constants.
Implementations§
Source§impl TbErrorKind
impl TbErrorKind
Sourcepub fn category(&self) -> TbErrorCategory
pub fn category(&self) -> TbErrorCategory
Returns the error category.
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
Creates an error kind from a raw value of the underlying Rust type.
Trait Implementations§
Source§impl Clone for TbErrorKind
impl Clone for TbErrorKind
Source§fn clone(&self) -> TbErrorKind
fn clone(&self) -> TbErrorKind
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 TbErrorKind
impl Debug for TbErrorKind
Source§impl Display for TbErrorKind
impl Display for TbErrorKind
Source§impl<T> From<TbErrorKind> for Result<T, TbError>
impl<T> From<TbErrorKind> for Result<T, TbError>
Source§fn from(v: TbErrorKind) -> Self
fn from(v: TbErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<TbErrorKind> for TbError
impl From<TbErrorKind> for TbError
Source§fn from(kind: TbErrorKind) -> Self
fn from(kind: TbErrorKind) -> Self
Converts to this type from the input type.
Source§impl Hash for TbErrorKind
impl Hash for TbErrorKind
Source§impl Kind for TbErrorKind
impl Kind for TbErrorKind
Source§impl Ord for TbErrorKind
impl Ord for TbErrorKind
Source§fn cmp(&self, other: &TbErrorKind) -> Ordering
fn cmp(&self, other: &TbErrorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TbErrorKind
impl PartialEq for TbErrorKind
Source§impl PartialOrd for TbErrorKind
impl PartialOrd for TbErrorKind
impl Copy for TbErrorKind
impl Eq for TbErrorKind
impl StructuralPartialEq for TbErrorKind
Auto Trait Implementations§
impl Freeze for TbErrorKind
impl RefUnwindSafe for TbErrorKind
impl Send for TbErrorKind
impl Sync for TbErrorKind
impl Unpin for TbErrorKind
impl UnwindSafe for TbErrorKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.