Skip to main content

RuntimePipeline

Struct RuntimePipeline 

Source
pub struct RuntimePipeline<'a> { /* private fields */ }
Expand description

Pipeline that processes incoming and locally-generated protocol messages.

Implementations§

Source§

impl<'a> RuntimePipeline<'a>

Source

pub fn new(store: &'a Store) -> Self

Creates a new pipeline backed by the given store.

Source

pub fn queue_outgoing<T>(&self, envelope: &Envelope<T>) -> Result<()>
where T: Serialize,

Queues a signed envelope for outbound delivery.

Source

pub fn queue_raw_wire(&self, wire: &WireEnvelope) -> Result<()>

Queues a pre-signed wire envelope for outbound delivery.

Source

pub fn ingest_verified<T>(&self, envelope: &Envelope<T>) -> Result<bool>
where T: Serialize,

Saves an incoming envelope to the inbox and returns false if already processed.

Source

pub fn mark_inbox_message_processed(&self, msg_id: &MessageId) -> Result<()>

Marks an inbox message as processed so it is not ingested again.

Source

pub fn ingest_project_charter( &self, envelope: &Envelope<ProjectCharter>, ) -> Result<()>

Source

pub fn ingest_approval_applied( &self, envelope: &Envelope<ApprovalApplied>, ) -> Result<()>

Source

pub fn ingest_task_delegated( &self, envelope: &Envelope<TaskDelegated>, ) -> Result<()>

Source

pub fn ingest_task_result_submitted( &self, envelope: &Envelope<TaskResultSubmitted>, ) -> Result<()>

Source

pub fn ingest_task_progress( &self, envelope: &Envelope<TaskProgress>, ) -> Result<()>

Source

pub fn ingest_stop_order(&self, envelope: &Envelope<StopOrder>) -> Result<()>

Source

pub fn ingest_stop_ack(&self, envelope: &Envelope<StopAck>) -> Result<()>

Source

pub fn ingest_stop_complete( &self, envelope: &Envelope<StopComplete>, ) -> Result<()>

Source

pub fn ingest_snapshot_response( &self, envelope: &Envelope<SnapshotResponse>, ) -> Result<()>

Source

pub fn ingest_evaluation_issued( &self, envelope: &Envelope<EvaluationIssued>, ) -> Result<()>

Source

pub fn ingest_publish_intent_proposed( &self, envelope: &Envelope<PublishIntentProposed>, ) -> Result<()>

Source

pub fn ingest_publish_intent_skipped( &self, envelope: &Envelope<PublishIntentSkipped>, ) -> Result<()>

Source

pub fn ingest_publish_result_recorded( &self, envelope: &Envelope<PublishResultRecorded>, ) -> Result<()>

Source

pub fn record_local_project_charter( &self, envelope: &Envelope<ProjectCharter>, ) -> Result<()>

Source

pub fn record_local_approval_applied( &self, envelope: &Envelope<ApprovalApplied>, ) -> Result<()>

Source

pub fn record_local_task_delegated( &self, envelope: &Envelope<TaskDelegated>, ) -> Result<()>

Source

pub fn record_local_task_result_submitted( &self, envelope: &Envelope<TaskResultSubmitted>, ) -> Result<()>

Source

pub fn record_local_task_progress( &self, envelope: &Envelope<TaskProgress>, ) -> Result<()>

Source

pub fn record_local_publish_intent_proposed( &self, envelope: &Envelope<PublishIntentProposed>, ) -> Result<()>

Source

pub fn record_local_publish_intent_skipped( &self, envelope: &Envelope<PublishIntentSkipped>, ) -> Result<()>

Source

pub fn record_local_publish_result_recorded( &self, envelope: &Envelope<PublishResultRecorded>, ) -> Result<()>

Source

pub fn record_local_stop_order( &self, envelope: &Envelope<StopOrder>, ) -> Result<()>

Source

pub fn record_local_stop_complete( &self, envelope: &Envelope<StopComplete>, ) -> Result<()>

Auto Trait Implementations§

§

impl<'a> Freeze for RuntimePipeline<'a>

§

impl<'a> !RefUnwindSafe for RuntimePipeline<'a>

§

impl<'a> !Send for RuntimePipeline<'a>

§

impl<'a> !Sync for RuntimePipeline<'a>

§

impl<'a> Unpin for RuntimePipeline<'a>

§

impl<'a> UnsafeUnpin for RuntimePipeline<'a>

§

impl<'a> !UnwindSafe for RuntimePipeline<'a>

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V