pub enum RollbackMode {
None,
BestEffort,
}Expand description
Rollback policy after the publish stage. BestEffort is the default when
pre-flight ran clean; None is the implicit default otherwise (callers
should warn that rollback is disabled). The CLI flag --rollback=<v>
sets ContextOptions::rollback_mode to Some(v) to override the
default-resolution at the dispatch site.
Variants§
None
Do not attempt rollback. Useful when the operator wants to inspect half-published state before deciding.
BestEffort
Run best-effort rollback for every reversible publisher whose evidence is present in the report. Irreversible publishers (chocolatey moderation, winget PRs, AUR) are never rolled back — the Submitter gate is the only protection.
Trait Implementations§
Source§impl Clone for RollbackMode
impl Clone for RollbackMode
Source§fn clone(&self) -> RollbackMode
fn clone(&self) -> RollbackMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RollbackMode
impl Debug for RollbackMode
Source§impl Default for RollbackMode
impl Default for RollbackMode
Source§fn default() -> RollbackMode
fn default() -> RollbackMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RollbackMode
impl<'de> Deserialize<'de> for RollbackMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RollbackMode
impl PartialEq for RollbackMode
Source§fn eq(&self, other: &RollbackMode) -> bool
fn eq(&self, other: &RollbackMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RollbackMode
impl Serialize for RollbackMode
impl Copy for RollbackMode
impl Eq for RollbackMode
impl StructuralPartialEq for RollbackMode
Auto Trait Implementations§
impl Freeze for RollbackMode
impl RefUnwindSafe for RollbackMode
impl Send for RollbackMode
impl Sync for RollbackMode
impl Unpin for RollbackMode
impl UnsafeUnpin for RollbackMode
impl UnwindSafe for RollbackMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.