pub enum KernelCommandError {
IntegrationBlocked {
reason: KernelIntegrationError,
},
UnknownAgent {
agent_id: AgentId,
},
UnsupportedCapability {
agent_id: AgentId,
capability: &'static str,
},
UnsupportedTransport {
agent_id: AgentId,
transport: TransportKind,
},
InvalidProviderSource {
agent_id: AgentId,
family: AdapterFamily,
adapter_id: String,
revision: String,
},
InvalidSessionOptions {
agent_id: AgentId,
message: String,
},
InvalidCapabilityProbe {
agent_id: AgentId,
message: String,
},
Control(ControlError),
}Variants§
IntegrationBlocked
Fields
§
reason: KernelIntegrationErrorUnknownAgent
UnsupportedCapability
UnsupportedTransport
InvalidProviderSource
InvalidSessionOptions
InvalidCapabilityProbe
Control(ControlError)
Implementations§
Source§impl KernelCommandError
impl KernelCommandError
Sourcepub fn is_unsupported_transport(&self) -> bool
pub fn is_unsupported_transport(&self) -> bool
True for exactly the UnsupportedTransport variant. Exists so a
caller several layers up the stack – gate4agent-node’s spawn-
dispatch waiter, specifically, which cannot and should not depend on
this crate directly (see this crate’s own Forbidden list) – can
classify one specific, already-well-known kernel rejection by
calling this inherent method on the value it already has (via
gate4agent-runtime-native’s CommandOutcome re-export), without
naming KernelCommandError’s own type path or matching its full
variant set.
Trait Implementations§
Source§impl Clone for KernelCommandError
impl Clone for KernelCommandError
Source§impl Debug for KernelCommandError
impl Debug for KernelCommandError
Source§impl Display for KernelCommandError
impl Display for KernelCommandError
impl Eq for KernelCommandError
Source§impl Error for KernelCommandError
impl Error for KernelCommandError
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<ControlError> for KernelCommandError
impl From<ControlError> for KernelCommandError
Source§fn from(source: ControlError) -> Self
fn from(source: ControlError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KernelCommandError
impl PartialEq for KernelCommandError
impl StructuralPartialEq for KernelCommandError
Auto Trait Implementations§
impl Freeze for KernelCommandError
impl RefUnwindSafe for KernelCommandError
impl Send for KernelCommandError
impl Sync for KernelCommandError
impl Unpin for KernelCommandError
impl UnsafeUnpin for KernelCommandError
impl UnwindSafe for KernelCommandError
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