pub enum LifecycleError {
Busy(RuntimePhase),
Async(AsyncSubmitError),
Excel(ExcelCallError),
RegistrationRollback {
primary: ExcelCallError,
cleanup: Vec<ExcelCallError>,
},
CloseFailed {
errors: Vec<ExcelCallError>,
},
}Expand description
A lifecycle transition could not be completed safely.
Variants§
Busy(RuntimePhase)
Another lifecycle transition owns the runtime in this phase.
Async(AsyncSubmitError)
Async generation activation failed.
Excel(ExcelCallError)
A typed Excel lifecycle call failed.
RegistrationRollback
Registration failed and one or more compensating calls also failed.
Fields
§
primary: ExcelCallErrorOriginal registration failure.
§
cleanup: Vec<ExcelCallError>Failed compensating delete-name or unregister calls.
CloseFailed
Closing could not unregister all remaining registrations.
Fields
§
errors: Vec<ExcelCallError>Exact errors retained for a later cleanup retry.
Trait Implementations§
Source§impl Clone for LifecycleError
impl Clone for LifecycleError
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
impl Eq for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
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()
Source§impl From<ExcelCallError> for LifecycleError
impl From<ExcelCallError> for LifecycleError
Source§fn from(value: ExcelCallError) -> Self
fn from(value: ExcelCallError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LifecycleError
impl PartialEq for LifecycleError
impl StructuralPartialEq for LifecycleError
Auto Trait Implementations§
impl Freeze for LifecycleError
impl RefUnwindSafe for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
impl UnwindSafe for LifecycleError
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