pub struct ProviderCompletionHandle { /* private fields */ }Expand description
Cloneable completion sender for worker tasks spawned by one runtime.
Implementations§
Source§impl ProviderCompletionHandle
impl ProviderCompletionHandle
Sourcepub fn try_complete(
&self,
invocation: &mut ProviderInvocation,
observation: &CapabilityObservation,
) -> Result<u64, ProviderRuntimeError>
pub fn try_complete( &self, invocation: &mut ProviderInvocation, observation: &CapabilityObservation, ) -> Result<u64, ProviderRuntimeError>
Enqueues a terminal observation; the returned sequence is not an
acknowledgement. Read ProviderObservationOutcome for canonical
applied/ignored/rejected disposition.
pub fn try_succeed( &self, invocation: &mut ProviderInvocation, result: &CapabilityResult, ) -> Result<u64, ProviderRuntimeError>
pub fn try_fail( &self, invocation: &mut ProviderInvocation, failure: &ToolFailure, ) -> Result<u64, ProviderRuntimeError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProviderCompletionHandle
impl RefUnwindSafe for ProviderCompletionHandle
impl Send for ProviderCompletionHandle
impl Sync for ProviderCompletionHandle
impl Unpin for ProviderCompletionHandle
impl UnsafeUnpin for ProviderCompletionHandle
impl UnwindSafe for ProviderCompletionHandle
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