pub enum LifecycleHandleError {
UnknownResource(String),
NotSupported(&'static str),
Runtime(RuntimeError),
}Expand description
Errors returned by LifecycleHandle operations.
Variants§
UnknownResource(String)
The requested resource does not exist in the current plan.
NotSupported(&'static str)
The handle does not support this operation yet (e.g. restart
before the restart_one primitive lands in the manager).
Runtime(RuntimeError)
Underlying runtime error.
Trait Implementations§
Source§impl Debug for LifecycleHandleError
impl Debug for LifecycleHandleError
Source§impl Display for LifecycleHandleError
impl Display for LifecycleHandleError
Source§impl Error for LifecycleHandleError
impl Error for LifecycleHandleError
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<RuntimeError> for LifecycleHandleError
impl From<RuntimeError> for LifecycleHandleError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LifecycleHandleError
impl !RefUnwindSafe for LifecycleHandleError
impl Send for LifecycleHandleError
impl Sync for LifecycleHandleError
impl Unpin for LifecycleHandleError
impl UnsafeUnpin for LifecycleHandleError
impl !UnwindSafe for LifecycleHandleError
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