pub struct ProjectedUiHandle { /* private fields */ }Expand description
Non-clone host handle retaining one exact Code projection and A3S Use lease.
The handle exposes immutable path-free content and the exact dependency edges selected at admission. It grants no renderer, filesystem, network, process, secret, state, or backend-message authority. The embedding host must close it after the complete render or interaction window drains.
Implementations§
Source§impl ProjectedUiHandle
impl ProjectedUiHandle
pub fn capability_id(&self) -> &CapabilityId
pub fn public_name(&self) -> &str
pub fn title(&self) -> &str
pub fn description(&self) -> &str
pub fn icon(&self) -> &str
pub fn order(&self) -> i32
pub fn document(&self) -> &UiDocument
pub fn surface_digest(&self) -> &Sha256Digest
Sourcepub fn dependencies(&self) -> &[CapabilityId]
pub fn dependencies(&self) -> &[CapabilityId]
Exact Tool, Skill, MCP, and Flow edges authorized for this UI value.
pub fn catalog_generation(&self) -> CodeCatalogGeneration
pub fn use_generation(&self) -> Option<&UseCapabilityGeneration>
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether Session shutdown has cancelled this host render window.
Sourcepub async fn close(self) -> Result<ScopeCloseReport>
pub async fn close(self) -> Result<ScopeCloseReport>
Close the exact Code/Use scope after the host has drained this UI.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectedUiHandle
impl !UnwindSafe for ProjectedUiHandle
impl Freeze for ProjectedUiHandle
impl Send for ProjectedUiHandle
impl Sync for ProjectedUiHandle
impl Unpin for ProjectedUiHandle
impl UnsafeUnpin for ProjectedUiHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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