#[non_exhaustive]pub enum ApprovalModeApplyOutcome {
Completed,
Noop,
Unknown(String),
}Expand description
Whether a mode change did anything, mirroring
ApprovalReconfigureApplyOutcome. Apply failures are commandRejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The mode changed.
Noop
Already in that mode; a success that writes no relaxation audit fact.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalModeApplyOutcome
impl Clone for ApprovalModeApplyOutcome
Source§impl Debug for ApprovalModeApplyOutcome
impl Debug for ApprovalModeApplyOutcome
Source§impl<'de> Deserialize<'de> for ApprovalModeApplyOutcome
impl<'de> Deserialize<'de> for ApprovalModeApplyOutcome
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalModeApplyOutcome
Source§impl PartialEq for ApprovalModeApplyOutcome
impl PartialEq for ApprovalModeApplyOutcome
Source§impl Serialize for ApprovalModeApplyOutcome
impl Serialize for ApprovalModeApplyOutcome
impl StructuralPartialEq for ApprovalModeApplyOutcome
Auto Trait Implementations§
impl Forget for ApprovalModeApplyOutcome
impl Freeze for ApprovalModeApplyOutcome
impl Move for ApprovalModeApplyOutcome
impl RefUnwindSafe for ApprovalModeApplyOutcome
impl Send for ApprovalModeApplyOutcome
impl Sync for ApprovalModeApplyOutcome
impl Unpin for ApprovalModeApplyOutcome
impl UnsafeUnpin for ApprovalModeApplyOutcome
impl UnwindSafe for ApprovalModeApplyOutcome
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