pub enum StatusMessageKind {
Recognised,
Unexpected,
}Expand description
Selects which wording the map_status_code message builder produces, so a
provider can phrase a handled error differently from one outside the ranges
the ladder knows about. The builder receives this rather than the raw status
to keep providers from re-deriving the range arithmetic.
Variants§
Recognised
The status fell in a handled error range.
Unexpected
The status fell outside every handled range.
Trait Implementations§
Source§impl Clone for StatusMessageKind
impl Clone for StatusMessageKind
Source§fn clone(&self) -> StatusMessageKind
fn clone(&self) -> StatusMessageKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatusMessageKind
Source§impl Debug for StatusMessageKind
impl Debug for StatusMessageKind
impl Eq for StatusMessageKind
Source§impl PartialEq for StatusMessageKind
impl PartialEq for StatusMessageKind
impl StructuralPartialEq for StatusMessageKind
Auto Trait Implementations§
impl Freeze for StatusMessageKind
impl RefUnwindSafe for StatusMessageKind
impl Send for StatusMessageKind
impl Sync for StatusMessageKind
impl Unpin for StatusMessageKind
impl UnsafeUnpin for StatusMessageKind
impl UnwindSafe for StatusMessageKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.