pub struct SupersessionOutcome { /* private fields */ }Expand description
What replacing a destination did to the work addressed to it.
Both halves matter to a caller. The superseded identifiers are what an operator sees when asking why a question was never answered; the replacements are the deliveries a caller still has to push, and a call that returned only a count could not do either.
Implementations§
Source§impl SupersessionOutcome
impl SupersessionOutcome
pub const fn new( superseded: Vec<HostDeliveryId>, replacements: Vec<HostDeliveryRecord>, ) -> Self
Sourcepub fn superseded(&self) -> &[HostDeliveryId]
pub fn superseded(&self) -> &[HostDeliveryId]
The deliveries that were closed because their destination went.
Sourcepub fn replacements(&self) -> &[HostDeliveryRecord]
pub fn replacements(&self) -> &[HostDeliveryRecord]
The deliveries opened in their place, when the work follows.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for SupersessionOutcome
impl Clone for SupersessionOutcome
Source§impl Debug for SupersessionOutcome
impl Debug for SupersessionOutcome
Source§impl Default for SupersessionOutcome
impl Default for SupersessionOutcome
impl Eq for SupersessionOutcome
Source§impl PartialEq for SupersessionOutcome
impl PartialEq for SupersessionOutcome
impl StructuralPartialEq for SupersessionOutcome
Auto Trait Implementations§
impl Freeze for SupersessionOutcome
impl RefUnwindSafe for SupersessionOutcome
impl Send for SupersessionOutcome
impl Sync for SupersessionOutcome
impl Unpin for SupersessionOutcome
impl UnsafeUnpin for SupersessionOutcome
impl UnwindSafe for SupersessionOutcome
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