pub enum Capability {
Show 22 variants
SessionRead,
SessionWrite,
PageRead,
PageWrite,
BrowserMutate,
NetworkEgress,
FileUpload,
FileDownload,
JavascriptEvaluate,
IntentExecute,
VisionAssist,
ArtifactRead,
ContextRead,
ArtifactCapture,
RecoveryRead,
RecoveryWrite,
JobSubmit,
JobRead,
JobCancel,
AuthorityAdmin,
BrowserFingerprint,
BrowserHumanize,
}Expand description
Capability granted by a token or policy.
Variants§
SessionRead
SessionWrite
PageRead
PageWrite
BrowserMutate
NetworkEgress
FileUpload
FileDownload
JavascriptEvaluate
IntentExecute
VisionAssist
ArtifactRead
ContextRead
ArtifactCapture
RecoveryRead
RecoveryWrite
JobSubmit
JobRead
JobCancel
AuthorityAdmin
BrowserFingerprint
BrowserHumanize
Implementations§
Source§impl Capability
impl Capability
Sourcepub const ALL: [Self; 22]
pub const ALL: [Self; 22]
Every capability, for callers that must not drift as variants are added –
notably the tools/list byte-budget gate, which under-measures the connect
payload if it misses a capability that advertises a tool. all_is_exhaustive
fails to compile when a variant is added without being listed here.
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
impl Copy for Capability
Source§impl Debug for Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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 Capability
Source§impl FromIterator<Capability> for CapabilitySet
impl FromIterator<Capability> for CapabilitySet
Source§fn from_iter<T: IntoIterator<Item = Capability>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Capability>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl FromStr for Capability
impl FromStr for Capability
Source§fn from_str(value: &str) -> Result<Self, Self::Err>
fn from_str(value: &str) -> Result<Self, Self::Err>
Parses the wire string. Sole parse table: bootstrap files, broker startup credentials, and every stdio gateway accept exactly these strings. Do not add a per-binary match; they drift and fail closed.
Source§type Err = UnknownCapability
type Err = UnknownCapability
The associated error which can be returned from parsing.
Source§impl Hash for Capability
impl Hash for Capability
Source§impl Ord for Capability
impl Ord for Capability
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§impl PartialOrd for Capability
impl PartialOrd for Capability
Source§impl Serialize for Capability
impl Serialize for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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