pub enum KernelResponse {
Success(Value),
Commands(Vec<CommandInfo>),
CapsuleMetadata(Vec<CapsuleMetadataEntry>),
Error(String),
Status(DaemonStatus),
ApprovalRequired {
request_id: String,
description: String,
capabilities: Vec<String>,
},
}Expand description
Management API responses from the core daemon.
Variants§
Success(Value)
The request succeeded.
Commands(Vec<CommandInfo>)
A list of available slash commands across all capsules.
CapsuleMetadata(Vec<CapsuleMetadataEntry>)
Metadata about loaded capsules.
Error(String)
The request failed.
Status(DaemonStatus)
Daemon status information.
ApprovalRequired
The request requires user capability approval before it can proceed.
Trait Implementations§
Source§impl Clone for KernelResponse
impl Clone for KernelResponse
Source§fn clone(&self) -> KernelResponse
fn clone(&self) -> KernelResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 KernelResponse
impl Debug for KernelResponse
Source§impl<'de> Deserialize<'de> for KernelResponse
impl<'de> Deserialize<'de> for KernelResponse
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
Auto Trait Implementations§
impl Freeze for KernelResponse
impl RefUnwindSafe for KernelResponse
impl Send for KernelResponse
impl Sync for KernelResponse
impl Unpin for KernelResponse
impl UnsafeUnpin for KernelResponse
impl UnwindSafe for KernelResponse
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