pub struct StreamFailure {
pub code: &'static str,
pub classification: StreamFailureClass,
}Expand description
Repeatable, structured terminal failure metadata.
Fields§
§code: &'static strStable diagnostic code; callers must not parse error display text.
classification: StreamFailureClassBroad failure category.
Implementations§
Source§impl StreamFailure
impl StreamFailure
Sourcepub const fn new(code: &'static str, classification: StreamFailureClass) -> Self
pub const fn new(code: &'static str, classification: StreamFailureClass) -> Self
Construct structured terminal failure metadata.
Trait Implementations§
Source§impl Clone for StreamFailure
impl Clone for StreamFailure
Source§fn clone(&self) -> StreamFailure
fn clone(&self) -> StreamFailure
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 moreSource§impl Debug for StreamFailure
impl Debug for StreamFailure
impl Eq for StreamFailure
Source§impl PartialEq for StreamFailure
impl PartialEq for StreamFailure
impl StructuralPartialEq for StreamFailure
Auto Trait Implementations§
impl Freeze for StreamFailure
impl RefUnwindSafe for StreamFailure
impl Send for StreamFailure
impl Sync for StreamFailure
impl Unpin for StreamFailure
impl UnsafeUnpin for StreamFailure
impl UnwindSafe for StreamFailure
Blanket Implementations§
impl<T> Allocation for T
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<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.