pub enum NodeRouterError {
NodeNotFound(String),
ServiceNotRunning {
node_id: String,
service_id: ServiceId,
status: ServiceStatus,
},
NoServicesRegistered,
RoutingFailed(String),
CapabilityNotSupported {
node_id: String,
capability: String,
},
InvalidContext {
node_id: String,
reason: String,
},
Internal(String),
}Expand description
Error type for node routing operations
Variants§
NodeNotFound(String)
Node not found in any registered service
ServiceNotRunning
Service that provides the node is not running
NoServicesRegistered
No services registered
RoutingFailed(String)
Routing failed
CapabilityNotSupported
Node does not support required capability
InvalidContext
Invalid node context
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for NodeRouterError
impl Debug for NodeRouterError
Source§impl Display for NodeRouterError
impl Display for NodeRouterError
Source§impl Error for NodeRouterError
impl Error for NodeRouterError
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<NodeRouterError> for NodeExecutorError
impl From<NodeRouterError> for NodeExecutorError
Source§fn from(source: NodeRouterError) -> Self
fn from(source: NodeRouterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeRouterError
impl RefUnwindSafe for NodeRouterError
impl Send for NodeRouterError
impl Sync for NodeRouterError
impl Unpin for NodeRouterError
impl UnsafeUnpin for NodeRouterError
impl UnwindSafe for NodeRouterError
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