#[non_exhaustive]pub struct PendingRun {
pub point: &'static str,
pub ran: Vec<String>,
pub failures: Vec<Failure>,
pub refused: Option<Refusal>,
pub ask: Option<u64>,
}Expand description
What listeners run later did: one emit’s local listeners queued for
their thread (Bus::run_pending), or one
deferred request (the defer contract’s drain).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.point: &'static strThe point emitted.
ran: Vec<String>The listeners that ran, in order (a listener removed since the emit is not run).
failures: Vec<Failure>Their failures, in listener order.
refused: Option<Refusal>The listener that stopped the request, if one did.
ask: Option<u64>For a deferred request, the number the defer contract’s ask
returned when it was asked; None for local listeners run by
Bus::run_pending.
Implementations§
Source§impl PendingRun
impl PendingRun
Sourcepub fn new(point: &'static str) -> PendingRun
pub fn new(point: &'static str) -> PendingRun
A run of point where nothing ran yet.
Trait Implementations§
Source§impl Clone for PendingRun
impl Clone for PendingRun
Source§impl Debug for PendingRun
impl Debug for PendingRun
impl Eq for PendingRun
Source§impl PartialEq for PendingRun
impl PartialEq for PendingRun
impl StructuralPartialEq for PendingRun
Auto Trait Implementations§
impl Forget for PendingRun
impl Freeze for PendingRun
impl Move for PendingRun
impl RefUnwindSafe for PendingRun
impl Send for PendingRun
impl Sync for PendingRun
impl Unpin for PendingRun
impl UnsafeUnpin for PendingRun
impl UnwindSafe for PendingRun
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