pub enum GroupError {
NotReady,
FactoryNotFound(String),
Core(GroupError),
Daemon(DaemonError),
}Expand description
Errors returned by the SDK’s group wrappers.
Variants§
NotReady
The caller’s DaemonRuntime has not yet reached Ready.
Start the runtime before constructing any group.
FactoryNotFound(String)
The caller referenced a kind that was never registered
via DaemonRuntime::register_factory. Register the kind
before spawning a group of that kind.
Core(GroupError)
Pass-through for errors surfaced by the core group layer
(NoHealthyMember, PlacementFailed, RegistryFailed,
InvalidConfig).
Daemon(DaemonError)
Pass-through for daemon-level errors surfaced during member spawn (registry collision, host construction).
Trait Implementations§
Source§impl Debug for GroupError
impl Debug for GroupError
Source§impl Display for GroupError
impl Display for GroupError
Source§impl Error for GroupError
impl Error for GroupError
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<DaemonError> for GroupError
impl From<DaemonError> for GroupError
Source§fn from(source: DaemonError) -> Self
fn from(source: DaemonError) -> Self
Converts to this type from the input type.
Source§impl From<GroupError> for GroupError
impl From<GroupError> for GroupError
Source§fn from(source: CoreGroupError) -> Self
fn from(source: CoreGroupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GroupError
impl RefUnwindSafe for GroupError
impl Send for GroupError
impl Sync for GroupError
impl Unpin for GroupError
impl UnsafeUnpin for GroupError
impl UnwindSafe for GroupError
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