pub enum FailureCategory {
ValidationFailure,
AuthorizationFailure,
PolicyDenied,
StaleApproval,
ExecutionFailure,
TransientInfrastructureFailure,
Cancellation,
StuckExecution,
RebootRequired,
RollbackFailure,
}Expand description
Structured failure categories for the IPC error protocol.
Currently used only in the proto bridge layer (sysknife-types <-> sysknife-proto conversions) and their tests. The daemon dispatcher uses string category names on the wire today; these variants will replace those strings when the daemon adopts the proto layer end-to-end.
Variants§
ValidationFailure
AuthorizationFailure
PolicyDenied
StaleApproval
ExecutionFailure
TransientInfrastructureFailure
Cancellation
StuckExecution
RebootRequired
RollbackFailure
Trait Implementations§
Source§impl Clone for FailureCategory
impl Clone for FailureCategory
Source§fn clone(&self) -> FailureCategory
fn clone(&self) -> FailureCategory
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 moreimpl Copy for FailureCategory
Source§impl Debug for FailureCategory
impl Debug for FailureCategory
Source§impl<'de> Deserialize<'de> for FailureCategory
impl<'de> Deserialize<'de> for FailureCategory
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
impl Eq for FailureCategory
Source§impl From<FailureCategory> for FailureCategory
impl From<FailureCategory> for FailureCategory
Source§fn from(value: FailureCategory) -> Self
fn from(value: FailureCategory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FailureCategory
impl PartialEq for FailureCategory
Source§impl Serialize for FailureCategory
impl Serialize for FailureCategory
impl StructuralPartialEq for FailureCategory
Source§impl TryFrom<FailureCategory> for FailureCategory
impl TryFrom<FailureCategory> for FailureCategory
Source§type Error = BridgeError
type Error = BridgeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for FailureCategory
impl RefUnwindSafe for FailureCategory
impl Send for FailureCategory
impl Sync for FailureCategory
impl Unpin for FailureCategory
impl UnsafeUnpin for FailureCategory
impl UnwindSafe for FailureCategory
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