pub struct CapabilitySession { /* private fields */ }Expand description
Command-scoped lazy capability session.
Executable/auth checks are collected immediately. Harness probe checks are loaded lazily on first use per harness and memoized for the command.
Implementations§
Source§impl CapabilitySession
impl CapabilitySession
pub fn collect(options: &CapabilityCollectionOptions) -> Self
pub fn collect_with_resolver( options: &CapabilityCollectionOptions, resolver: &dyn ExecutableResolver, ) -> Self
pub fn installed_harnesses(&self) -> HashSet<String>
pub fn offline(&self) -> bool
pub fn executable_snapshot(&self) -> BTreeMap<HarnessId, ExecutableState>
pub fn auth_snapshot(&self) -> BTreeMap<HarnessId, AuthState>
pub fn opencode_outcome(&mut self) -> &CachedProbeOutcome
pub fn loaded_opencode_outcome(&self) -> Option<&CachedProbeOutcome>
pub fn loaded_pi_outcome(&self) -> Option<&CachedPiProbeOutcome>
pub fn loaded_cursor_outcome(&self) -> Option<&CachedCursorProbeOutcome>
pub fn loaded_opencode_probe_result(&self) -> Option<&OpenCodeProbeResult>
pub fn loaded_pi_probe_result(&self) -> Option<&PiProbeResult>
pub fn loaded_cursor_probe_result(&self) -> Option<&CursorProbeResult>
pub fn pi_outcome(&mut self) -> &CachedPiProbeOutcome
pub fn cursor_outcome(&mut self) -> &CachedCursorProbeOutcome
pub fn opencode_probe_result(&mut self) -> Option<OpenCodeProbeResult>
pub fn pi_probe_result(&mut self) -> Option<PiProbeResult>
pub fn cursor_probe_result(&mut self) -> Option<CursorProbeResult>
pub fn into_snapshot(self) -> CapabilitySnapshot
Trait Implementations§
Source§impl Clone for CapabilitySession
impl Clone for CapabilitySession
Source§fn clone(&self) -> CapabilitySession
fn clone(&self) -> CapabilitySession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapabilitySession
impl RefUnwindSafe for CapabilitySession
impl Send for CapabilitySession
impl Sync for CapabilitySession
impl Unpin for CapabilitySession
impl UnsafeUnpin for CapabilitySession
impl UnwindSafe for CapabilitySession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more