Skip to main content

HostToolAdmissionPort

Trait HostToolAdmissionPort 

Source
pub trait HostToolAdmissionPort:
    Send
    + Sync
    + Debug {
    // Required methods
    fn binding(&self) -> HostAdmissionBinding;
    fn prepare<'life0, 'async_trait>(
        &'life0 self,
        invocation: Arc<PreparedToolInvocation>,
    ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionPreparation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resolve<'life0, 'async_trait>(
        &'life0 self,
        invocation: Arc<PreparedToolInvocation>,
        preparation: HostAdmissionPreparation,
        local_disposition: LocalAdmissionDisposition,
        approved: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Option<AdmittedToolInvocation>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn revalidate_claim<'life0, 'life1, 'async_trait>(
        &'life0 self,
        admitted: &'life1 AdmittedToolInvocation,
    ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionReceipt>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn consume_native<'life0, 'life1, 'async_trait>(
        &'life0 self,
        admitted: &'life1 AdmittedToolInvocation,
    ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionReceipt>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        invocation: &'life1 PreparedToolInvocation,
        admission_id: &'life2 str,
        reason: AdmissionCancellationReason,
    ) -> Pin<Box<dyn Future<Output = Result<AdmissionCancellationOutcome>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn finish<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        invocation: &'life1 PreparedToolInvocation,
        admission_id: &'life2 str,
        outcome: AdmissionTerminalOutcome,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn binding(&self) -> HostAdmissionBinding

Source

fn prepare<'life0, 'async_trait>( &'life0 self, invocation: Arc<PreparedToolInvocation>, ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionPreparation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn resolve<'life0, 'async_trait>( &'life0 self, invocation: Arc<PreparedToolInvocation>, preparation: HostAdmissionPreparation, local_disposition: LocalAdmissionDisposition, approved: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<AdmittedToolInvocation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn revalidate_claim<'life0, 'life1, 'async_trait>( &'life0 self, admitted: &'life1 AdmittedToolInvocation, ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Re-evaluate host policy, grants, lease, budget, approval, and the exact payload immediately before UAR persists claim intent.

Source

fn consume_native<'life0, 'life1, 'async_trait>( &'life0 self, admitted: &'life1 AdmittedToolInvocation, ) -> Pin<Box<dyn Future<Output = Result<HostAdmissionReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Consume native authority after UAR persists claim intent. A repeated claim cannot acknowledge another execution of the same invocation.

Source

fn cancel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, invocation: &'life1 PreparedToolInvocation, admission_id: &'life2 str, reason: AdmissionCancellationReason, ) -> Pin<Box<dyn Future<Output = Result<AdmissionCancellationOutcome>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn finish<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, invocation: &'life1 PreparedToolInvocation, admission_id: &'life2 str, outcome: AdmissionTerminalOutcome, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§