pub enum ReconnectOutcome {
ResumeReady(PendingResume),
Cancelled(String),
Timeout,
}Expand description
Outcome of TransferControl::wait_for_reconnect. The producer
uses this to decide whether to swap in a new peer + replay, give
up because of cancel, or give up because the reconnect window
expired.
Variants§
ResumeReady(PendingResume)
A resume request arrived. The carried PendingResume is
already consumed from the control’s internal slot; the new
peer is installed and observable via TransferControl::peer.
Cancelled(String)
Cancel arrived (sticky). The reason mirrors
CreditError::Cancelled.
Timeout
No resume request landed before the deadline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReconnectOutcome
impl RefUnwindSafe for ReconnectOutcome
impl Send for ReconnectOutcome
impl Sync for ReconnectOutcome
impl Unpin for ReconnectOutcome
impl UnsafeUnpin for ReconnectOutcome
impl UnwindSafe for ReconnectOutcome
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