pub enum LifecycleError {
InvalidTransition {
from: ShellState,
to: ShellState,
},
ShellNotFound(String),
AlreadyExists(String),
MaxChildrenReached(usize),
ParentNotRunning(String),
}Expand description
Errors that can occur during lifecycle operations.
Variants§
InvalidTransition
ShellNotFound(String)
AlreadyExists(String)
MaxChildrenReached(usize)
ParentNotRunning(String)
Trait Implementations§
Source§impl Clone for LifecycleError
impl Clone for LifecycleError
Source§fn clone(&self) -> LifecycleError
fn clone(&self) -> LifecycleError
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 moreSource§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl<'de> Deserialize<'de> for LifecycleError
impl<'de> Deserialize<'de> for LifecycleError
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
Source§impl Display for LifecycleError
impl Display 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 PartialEq for LifecycleError
impl PartialEq for LifecycleError
Source§fn eq(&self, other: &LifecycleError) -> bool
fn eq(&self, other: &LifecycleError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LifecycleError
impl Serialize 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