Skip to main content

SourceSettlements

Struct SourceSettlements 

Source
pub struct SourceSettlements<Item>
where Item: SourceAction,
{ /* private fields */ }
Expand description

Exact results for one SourceActions lane.

Closed admission retains values in this same product. There is no second residual representation and no inverse conversion.

Implementations§

Source§

impl<Item> SourceSettlements<Item>
where Item: SourceAction,

Source

pub fn into_inputs(self) -> Vec<ActionItemResult<Item>> ⓘ

Transfer every retained input in authored order.

Trait Implementations§

Source§

impl<Item> ClassifySettlement for SourceSettlements<Item>
where Item: SourceAction,

Source§

fn settlement_status(&self) -> SettlementStatus

Inspect every member without consuming or rewriting the settlement.
Source§

impl<Host, RootEvent, Item> SourceSettlementCustody<Host, RootEvent> for SourceSettlements<Item>
where Host: SourceAdmission<RootEvent, Item::Source, ActionItemResult<Item>>, RootEvent: EventIngress<Item::Source, ActionItemResult<Item>>, Item: SourceAction,

Source§

type Custody = (Option<SettledItem<Item, ItemSettlement<Item, <Item as ActionItem>::Accepted, <Item as ActionItem>::Rejection, <Item as ActionItem>::Prerequisite>>>, IntoIter<SettledItem<Item, ItemSettlement<Item, <Item as ActionItem>::Accepted, <Item as ActionItem>::Rejection, <Item as ActionItem>::Prerequisite>>>, Option<Result<(), SettledItem<Item, ItemSettlement<Item, <Item as ActionItem>::Accepted, <Item as ActionItem>::Rejection, <Item as ActionItem>::Prerequisite>>>>)

Source§

fn prepare_source(progress: &mut Option<SourceProgress<Self, Self::Custody>>)

Source§

fn offer_next_to_source( custody: &mut Self::Custody, host: &mut Host, ) -> impl Future<Output = ()> + Send

Source§

fn finish_source(progress: &mut Option<SourceProgress<Self, Self::Custody>>)

Auto Trait Implementations§

§

impl<Item> Freeze for SourceSettlements<Item>

§

impl<Item> RefUnwindSafe for SourceSettlements<Item>

§

impl<Item> Send for SourceSettlements<Item>

§

impl<Item> Sync for SourceSettlements<Item>
where Item: Sync, <Item as ActionItem>::Accepted: Sync, <Item as ActionItem>::Rejection: Sync, <Item as ActionItem>::Prerequisite: Sync,

§

impl<Item> Unpin for SourceSettlements<Item>
where Item: Unpin, <Item as ActionItem>::Accepted: Unpin, <Item as ActionItem>::Rejection: Unpin, <Item as ActionItem>::Prerequisite: Unpin,

§

impl<Item> UnsafeUnpin for SourceSettlements<Item>

§

impl<Item> UnwindSafe for SourceSettlements<Item>

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, 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.