Skip to main content

ComponentTransport

Trait ComponentTransport 

Source
pub trait ComponentTransport {
    // Required methods
    fn observe(
        &mut self,
        plan: &ComponentPlanRecord,
    ) -> Result<ComponentObservation, ComponentOperationError>;
    fn progress(
        &mut self,
        plan: &ComponentPlanRecord,
    ) -> Result<ComponentProgressObservation, ComponentOperationError>;
    fn submit(
        &mut self,
        plan: &ComponentPlanRecord,
    ) -> Result<(), ComponentOperationError>;
}
Expand description

Transport performs individual reads/commands; workflow owns ordering and retry.

Required Methods§

Source

fn observe( &mut self, plan: &ComponentPlanRecord, ) -> Result<ComponentObservation, ComponentOperationError>

Read current release, placement, controller and available-pool authority.

Source

fn progress( &mut self, plan: &ComponentPlanRecord, ) -> Result<ComponentProgressObservation, ComponentOperationError>

Read this exact operation; only typed absence permits submission.

Source

fn submit( &mut self, plan: &ComponentPlanRecord, ) -> Result<(), ComponentOperationError>

Submit the retained operation identity once.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§