pub enum ResourceRef {
KernelDomain {
domain: String,
},
Skill {
name: String,
},
Space {
id: Uuid,
},
Agent {
id: AgentId,
},
Exec {
mode: String,
},
Browser,
A2a,
Mcp {
server: String,
},
}Expand description
A reference to a protected resource.
Resources are the objects that capabilities govern. Each variant identifies a distinct resource class in the Oxios kernel.
Variants§
KernelDomain
A kernel domain (e.g., “memory”, “scheduler”).
Skill
An installed skill (unified programs + skills per RFC-009).
Space
A workspace space.
Agent
Another agent (for inter-agent communication).
Exec
Command execution (shell or structured).
Browser
Headless browser access.
A2a
Agent-to-agent communication channel.
Mcp
MCP (Model Context Protocol) server bridge.
Trait Implementations§
Source§impl Clone for ResourceRef
impl Clone for ResourceRef
Source§fn clone(&self) -> ResourceRef
fn clone(&self) -> ResourceRef
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 ResourceRef
impl Debug for ResourceRef
Source§impl<'de> Deserialize<'de> for ResourceRef
impl<'de> Deserialize<'de> for ResourceRef
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 ResourceRef
impl Display for ResourceRef
impl Eq for ResourceRef
Source§impl Hash for ResourceRef
impl Hash for ResourceRef
Source§impl PartialEq for ResourceRef
impl PartialEq for ResourceRef
Source§fn eq(&self, other: &ResourceRef) -> bool
fn eq(&self, other: &ResourceRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceRef
impl Serialize for ResourceRef
impl StructuralPartialEq for ResourceRef
Auto Trait Implementations§
impl Freeze for ResourceRef
impl RefUnwindSafe for ResourceRef
impl Send for ResourceRef
impl Sync for ResourceRef
impl Unpin for ResourceRef
impl UnsafeUnpin for ResourceRef
impl UnwindSafe for ResourceRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.