Skip to main content

SyntheticCapabilityAdapter

Struct SyntheticCapabilityAdapter 

Source
pub struct SyntheticCapabilityAdapter { /* private fields */ }
Expand description

Synthetic adapter for testing and deterministic verification of capability combinations.

Implementations§

Trait Implementations§

Source§

impl NodeCapabilityAdapter for SyntheticCapabilityAdapter

Source§

fn adapter_identity(&self) -> &str

Unique identity of this adapter.
Source§

fn declared_capabilities(&self) -> BTreeSet<NodeCapability>

Truthful set of declared capabilities.
Source§

fn supports_inflight_steer(&self) -> bool

Whether native in-flight steering is supported (without killing process).
Source§

fn supports_inflight_pause(&self) -> bool

Whether native in-flight suspension is supported (without killing process).
Source§

fn supports_cooperative_cancel(&self) -> bool

Whether cooperative cancellation is acknowledged.
Source§

fn start_invocation( &self, invocation: &NodeInvocation, ) -> Result<(), AdapterError>

Start a new invocation.
Source§

fn steer_invocation( &self, invocation_id: &str, instruction: &str, ) -> Result<SteerOutcome, AdapterError>

Deliver steer intervention to an active invocation.
Source§

fn pause_invocation( &self, invocation_id: &str, ) -> Result<PauseOutcome, AdapterError>

Request pause of an active invocation.
Source§

fn resume_invocation( &self, invocation_id: &str, ) -> Result<ResumeOutcome, AdapterError>

Request resume of a paused invocation.
Source§

fn cancel_invocation( &self, invocation_id: &str, ) -> Result<CancelOutcome, AdapterError>

Cooperatively cancel an invocation.
Source§

fn poll_status( &self, invocation_id: &str, ) -> Result<AdapterExecutionStatus, AdapterError>

Poll execution status.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.