pub struct ActionError {
pub kind: ActionErrorKind,
pub message: String,
pub retry_after_ms: Option<u64>,
}Expand description
Structured error from action execution; used by Policy for retry decisions.
Fields§
§kind: ActionErrorKind§message: String§retry_after_ms: Option<u64>Implementations§
Source§impl ActionError
impl ActionError
pub fn transient(message: impl Into<String>) -> Self
pub fn permanent(message: impl Into<String>) -> Self
pub fn rate_limited(message: impl Into<String>, retry_after_ms: u64) -> Self
Sourcepub fn from_kernel_error(e: &KernelError) -> Self
pub fn from_kernel_error(e: &KernelError) -> Self
Convert a generic executor error (KernelError) into an ActionError for policy. Used by the driver when the executor returns Err(KernelError).
Trait Implementations§
Source§impl Clone for ActionError
impl Clone for ActionError
Source§fn clone(&self) -> ActionError
fn clone(&self) -> ActionError
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionError
impl Debug for ActionError
Auto Trait Implementations§
impl Freeze for ActionError
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnsafeUnpin for ActionError
impl UnwindSafe for ActionError
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