pub enum ResolvedCapability {
FsRead {
paths: Vec<String>,
},
NetHttp {
hosts: Vec<String>,
},
ProcessSpawn {
programs: Vec<String>,
},
DeviceInput {
targets: Vec<String>,
},
DeviceCapture {
targets: Vec<String>,
},
}Expand description
Capability vocabulary — one set of types, owned by phi-cap
(sdk-assembly §4.1): declaration layer CapabilitySpec, pinned layer
ResolvedCapability, decision layer phi_cap::Capability, with
class_of the only translation between them. This module re-exports the
same type names so existing plugin code is unchanged (the old “wasm form
only” law is lifted: every shape that declares capabilities uses these).
Which variants a form may declare is that form’s enforcement face —
see PluginManifest::validate_tool: declared means enforceable.
A declaration with its scope resolved/pinned — the registry’s view.
Scope fields survive resolution; resolution never rewrites semantics (absolute paths and normalized hosts only).
Variants§
FsRead
Pinned absolute paths.
NetHttp
Pinned normalized hosts.
ProcessSpawn
Pinned program allow-list.
DeviceInput
Pinned input targets.
DeviceCapture
Pinned capture targets.
Implementations§
Source§impl ResolvedCapability
impl ResolvedCapability
Sourcepub const fn capability(&self) -> Capability
pub const fn capability(&self) -> Capability
The decision class this pinned declaration resolves to.
Trait Implementations§
Source§impl Clone for ResolvedCapability
impl Clone for ResolvedCapability
Source§fn clone(&self) -> ResolvedCapability
fn clone(&self) -> ResolvedCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedCapability
impl Debug for ResolvedCapability
Source§impl<'de> Deserialize<'de> for ResolvedCapability
impl<'de> Deserialize<'de> for ResolvedCapability
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolvedCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolvedCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ResolvedCapability
Source§impl PartialEq for ResolvedCapability
impl PartialEq for ResolvedCapability
Source§impl Serialize for ResolvedCapability
impl Serialize for ResolvedCapability
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResolvedCapability
Auto Trait Implementations§
impl Forget for ResolvedCapability
impl Freeze for ResolvedCapability
impl Move for ResolvedCapability
impl RefUnwindSafe for ResolvedCapability
impl Send for ResolvedCapability
impl Sync for ResolvedCapability
impl Unpin for ResolvedCapability
impl UnsafeUnpin for ResolvedCapability
impl UnwindSafe for ResolvedCapability
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
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
key and return true if they are equal.