Skip to main content

Outcome

Trait Outcome 

Source
pub trait Outcome: Send {
    // Provided methods
    fn plan(&self, plan: &mut Plan<'_>) -> Result<()> { ... }
    fn committed(&mut self, stamp: Stamp) { ... }
    fn reply(self) -> Result<Reply>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source

fn committed(&mut self, stamp: Stamp)

Source

fn reply(self) -> Result<Reply>
where Self: Sized,

What was planned is already committed when serializing fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Outcome for ()

Source§

impl Outcome for Value

Source§

impl<A: Outcome, B: Outcome, C: Outcome, D: Outcome> Outcome for (A, B, C, D)

Source§

fn reply(self) -> Result<Reply>

The first part answering anything: (Booking, Queued) answers the booking.

Source§

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source§

fn committed(&mut self, stamp: Stamp)

Source§

impl<A: Outcome, B: Outcome, C: Outcome> Outcome for (A, B, C)

Source§

fn reply(self) -> Result<Reply>

The first part answering anything: (Booking, Queued) answers the booking.

Source§

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source§

fn committed(&mut self, stamp: Stamp)

Source§

impl<A: Outcome, B: Outcome> Outcome for (A, B)

Source§

fn reply(self) -> Result<Reply>

The first part answering anything: (Booking, Queued) answers the booking.

Source§

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source§

fn committed(&mut self, stamp: Stamp)

Source§

impl<T: Outcome> Outcome for Option<T>

Source§

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source§

fn committed(&mut self, stamp: Stamp)

Source§

fn reply(self) -> Result<Reply>

Source§

impl<T: Outcome> Outcome for Vec<T>

Source§

fn plan(&self, plan: &mut Plan<'_>) -> Result<()>

Source§

fn committed(&mut self, stamp: Stamp)

Source§

fn reply(self) -> Result<Reply>

Implementors§

Source§

impl Outcome for LocalScheduled

Source§

impl Outcome for Queued

Source§

impl Outcome for Reindexing

Source§

impl<A: Aggregate> Outcome for A

Source§

impl<A: Aggregate> Outcome for Guard<A>

Source§

impl<M: Mirror> Outcome for Backfilled<M>

Source§

impl<M: Mirror> Outcome for MirrorRow<M>

A backfill locks the whole mirror instead, so the row lock is shared on the mirror.

Source§

impl<T: Show + Serialize + Send + Sync + 'static> Outcome for Paginated<T>