Enum WithholdError
#[non_exhaustive]pub enum WithholdError<E> {
#[non_exhaustive] NotHeld {
position: SequencePosition,
},
Store(E),
}Expand description
Why a WithholdingStore::withhold or
WithholdingStore::withhold_where call withheld nothing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]NotHeld
The inner store yields no event at position: never assigned, a gap,
above the head, or not yet visible.
Refused rather than recorded, because a report naming it would claim the instrument hid an event that never existed.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
position: SequencePositionThe lowest requested position the inner store does not hold.
Store(E)
Reading the inner store failed.
The inner error is carried, not rendered: it is reachable through
source.
Trait Implementations§
§impl<E: Clone> Clone for WithholdError<E>
impl<E: Clone> Clone for WithholdError<E>
§impl<E: Debug> Debug for WithholdError<E>
impl<E: Debug> Debug for WithholdError<E>
§impl<E> Display for WithholdError<E>
impl<E> Display for WithholdError<E>
impl<E: Eq> Eq for WithholdError<E>
§impl<E: Error + 'static> Error for WithholdError<E>
impl<E: Error + 'static> Error for WithholdError<E>
§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()
§impl<E: PartialEq> PartialEq for WithholdError<E>
impl<E: PartialEq> PartialEq for WithholdError<E>
impl<E: PartialEq> StructuralPartialEq for WithholdError<E>
Auto Trait Implementations§
impl<E> Freeze for WithholdError<E>where
E: Freeze,
impl<E> RefUnwindSafe for WithholdError<E>where
E: RefUnwindSafe,
impl<E> Send for WithholdError<E>where
E: Send,
impl<E> Sync for WithholdError<E>where
E: Sync,
impl<E> Unpin for WithholdError<E>where
E: Unpin,
impl<E> UnsafeUnpin for WithholdError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for WithholdError<E>where
E: UnwindSafe,
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