pub enum Resource {
Show 13 variants
Galaxy(String),
KarmaLedger,
DharmaRules,
SearchIndex,
VectorStore,
Network,
Filesystem,
Process,
Inference,
Session,
EventBus,
CoordinationLease,
CoordinationRelease,
}Expand description
A resource that a tool may read from or write to.
Variants§
Galaxy(String)
A specific LMDB galaxy database
KarmaLedger
The karma ledger
DharmaRules
The Dharma rule engine
SearchIndex
The Tantivy full-text index
VectorStore
The vector embedding store
Network
External network (HTTP, gRPC)
Filesystem
Local filesystem outside LMDB
Process
System process spawning
Inference
LLM inference (local or remote)
Session
User session state
EventBus
The Gan Ying event bus (persisted to a JSONL log when enabled)
CoordinationLease
The coordination lease ledger’s acquire/renew path (fixed
<git-common-dir>/wm-leases.json): strict mode refuses new claims and
renewals so system stress cannot trap new work (AHIMSA Target A, 9.1.8).
CoordinationRelease
Owner cleanup of one coordination lease (exact owner + exact scope, fixed ledger only): the single coordination mutation strict mode admits (AHIMSA Target A, 9.1.8).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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