pub enum RuleError {
NotFound(String),
VersionDowngrade {
current: u64,
proposed: u64,
},
ComputeCapMismatch {
required: String,
available: String,
},
MissingDependency(String),
InvalidSignature,
RollbackTargetMissing(u64),
NoActiveVersion,
QuiesceTimeout(Duration),
BackendError(String),
DuplicateVersion {
rule_id: String,
version: u64,
},
}Expand description
Errors produced by the rule registry.
Variants§
NotFound(String)
No such rule in the registry.
VersionDowngrade
Incoming version is not strictly newer than the current active version.
ComputeCapMismatch
Rule targets a compute capability the device does not meet.
Fields
MissingDependency(String)
Rule depends on another rule that is not registered.
InvalidSignature
Signature check did not succeed.
RollbackTargetMissing(u64)
Caller asked to roll back to a version no longer in history.
NoActiveVersion
No version is currently active — nothing to roll back from.
QuiesceTimeout(Duration)
Quiesce window elapsed before the actor finished draining.
BackendError(String)
Swap backend refused the operation (wraps backend-specific detail).
DuplicateVersion
Version was already registered and we do not allow re-register of
the same (rule_id, version) tuple.
Trait Implementations§
Source§impl Error for RuleError
impl Error for RuleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RuleError
impl RefUnwindSafe for RuleError
impl Send for RuleError
impl Sync for RuleError
impl Unpin for RuleError
impl UnsafeUnpin for RuleError
impl UnwindSafe for RuleError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.