pub enum PendingApproval {
Approved(String),
NothingParked,
Mismatch {
parked: String,
},
}Expand description
What MissionHost::try_approve_pending_matching did.
Mismatch is deliberately not an error: the caller renders an
“awaiting X, not Y” refusal naming both plans, which tells the reviewer
what happened rather than handing them a status code.
Variants§
Approved(String)
The parked plan was the expected one and is now committed on the mission branch; carries the mission branch name.
NothingParked
Nothing was parked: never requested, or forfeited by a serve restart or an idle release. The caller’s own state-aware routing takes over.
Mismatch
A plan IS parked and it is not the one the caller reviewed. Carries the PARKED plan’s identity so the refusal can name both.
Trait Implementations§
Source§impl Clone for PendingApproval
impl Clone for PendingApproval
Source§impl Debug for PendingApproval
impl Debug for PendingApproval
impl Eq for PendingApproval
Source§impl PartialEq for PendingApproval
impl PartialEq for PendingApproval
impl StructuralPartialEq for PendingApproval
Auto Trait Implementations§
impl Freeze for PendingApproval
impl RefUnwindSafe for PendingApproval
impl Send for PendingApproval
impl Sync for PendingApproval
impl Unpin for PendingApproval
impl UnsafeUnpin for PendingApproval
impl UnwindSafe for PendingApproval
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