pub enum CapabilitySpec {
FsRead(FsReadSpec),
NetHttp(NetHttpSpec),
ProcessSpawn(ProcessSpawnSpec),
DeviceInput(DeviceInputSpec),
DeviceCapture(DeviceCaptureSpec),
}Expand description
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§impl Debug for CapabilitySpec
impl Debug for CapabilitySpec
impl Eq for CapabilitySpec
Source§impl PartialEq for CapabilitySpec
impl PartialEq for CapabilitySpec
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
Mutably borrows from an owned value. Read more