pub enum CapabilitySpec {
FsRead(FsReadSpec),
NetHttp(NetHttpSpec),
ProcessSpawn(ProcessSpawnSpec),
DeviceInput(DeviceInputSpec),
DeviceCapture(DeviceCaptureSpec),
}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.
Capability allow-list entry — the declaration form (fail-closed:
undeclared = not granted).
Every shape that declares capabilities uses this one enum: wasm plugin
manifests, capability packs’ MethodSpec.caps, the plugin sdk form.
Wire tags keep the dotted face:scope names.
Variants§
FsRead(FsReadSpec)
Readable directories/files (pinned as absolute paths at install).
NetHttp(NetHttpSpec)
Outbound HTTP host allow-list (pinned normalized at install).
ProcessSpawn(ProcessSpawnSpec)
Process spawn face.
DeviceInput(DeviceInputSpec)
Device input face (pointer / keyboard / touch).
DeviceCapture(DeviceCaptureSpec)
Device capture face (screenshots and friends).
Trait Implementations§
Source§impl Clone for CapabilitySpec
impl Clone for CapabilitySpec
Source§fn clone(&self) -> CapabilitySpec
fn clone(&self) -> CapabilitySpec
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 CapabilitySpec
impl Debug for CapabilitySpec
Source§impl<'de> Deserialize<'de> for CapabilitySpec
impl<'de> Deserialize<'de> for CapabilitySpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilitySpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilitySpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CapabilitySpec
Source§impl PartialEq for CapabilitySpec
impl PartialEq for CapabilitySpec
Source§impl Serialize for CapabilitySpec
impl Serialize for CapabilitySpec
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 CapabilitySpec
Auto Trait Implementations§
impl Freeze for CapabilitySpec
impl RefUnwindSafe for CapabilitySpec
impl Send for CapabilitySpec
impl Sync for CapabilitySpec
impl Unpin for CapabilitySpec
impl UnsafeUnpin for CapabilitySpec
impl UnwindSafe for CapabilitySpec
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.