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