Skip to main content

Output

Enum Output 

pub enum Output {
    Ack(u64),
    Reject(u64),
    Result {
        run: RunId,
        status: Status,
        payload: Payload,
    },
    ChildStart {
        parent: ParentRef,
        wtype: Name,
        id: Name,
        flags: u8,
        deadline_ms: u64,
        input: Payload,
    },
    ChildResult {
        parent: ParentRef,
        status: Status,
        payload: Payload,
    },
    Signal {
        target: Name,
        name: Name,
        payload: Payload,
        dedup: u64,
    },
    UpdateResult {
        run: RunId,
        ordinal: u64,
        id: Name,
        status: Status,
        payload: Payload,
    },
    Reply {
        token: u64,
        status: Status,
        payload: Payload,
    },
    Refuse {
        token: u64,
        message: Payload,
    },
    Close {
        target: Name,
        wtype: Name,
        parent: Option<ParentRef>,
        terminate: bool,
        reason: Payload,
    },
}
Expand description

Something that may leave the process once its record is durable.

Variants§

§

Ack(u64)

Acknowledge a client request (start, signal, cancel).

§

Reject(u64)

Refuse a client request, once the state the refusal is based on is durable (for example, a signal to a run whose Done was just appended: a crash could still take that Done back).

§

Result

A run finished; release its result to callers.

Fields

§run: RunId
§status: Status
§payload: Payload
§

ChildStart

Start (or attach to) a child workflow.

Fields

§parent: ParentRef
§wtype: Name
§id: Name
§flags: u8
§deadline_ms: u64
§input: Payload
§

ChildResult

Report a child’s result to its parent.

Fields

§parent: ParentRef
§status: Status
§payload: Payload
§

Signal

Deliver a signal to another workflow.

Fields

§target: Name
§name: Name
§payload: Payload
§dedup: u64
§

UpdateResult

An update’s handler returned; release its result to callers.

Fields

§run: RunId
§ordinal: u64
§id: Name
§status: Status
§payload: Payload
§

Reply

Answer a client request with a value (an update result, a query answer, a refusal with its reason). Never produced by the core.

Fields

§token: u64
§status: Status
§payload: Payload
§

Refuse

Refuse a client request with a reason (an update’s validator said no, a completion token is stale). Never produced by the core.

Fields

§token: u64
§message: Payload
§

Close

Close another workflow: a child under its parent close policy (parent names the closing parent), or a cancel request sent by workflow code.

Fields

§target: Name
§wtype: Name

The child’s workflow type (parent close policy), so a child whose start has not arrived yet is recorded as closed.

§terminate: bool
§reason: Payload

Trait Implementations§

§

impl Clone for Output

§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Output

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Eq for Output

§

impl PartialEq for Output

§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Output

Auto Trait Implementations§

§

impl Forget for Output

§

impl Freeze for Output

§

impl Move for Output

§

impl RefUnwindSafe for Output

§

impl Send for Output

§

impl Sync for Output

§

impl Unpin for Output

§

impl UnsafeUnpin for Output

§

impl UnwindSafe for Output

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.