[][src]Struct stepper_interface::StepperOutcome

pub struct StepperOutcome {
    pub ret_code: i32,
    pub error_message: String,
    pub data: Vec<u8>,
    pub next_peer_pks: Vec<String>,
}

Describes a result returned at the end of the stepper execution.

Fields

ret_code: i32

A return code, where STEPPER_SUCCESS means success.

error_message: String

Contains error message if ret_code != STEPPER_SUCCESS.

data: Vec<u8>

Contains script data that should be preserved in an executor of this stepper regardless of ret_code value.

next_peer_pks: Vec<String>

Public keys of peers that should receive data.

Implementations

impl StepperOutcome[src]

pub fn from_ivalues(mut ivalues: Vec<IValue>) -> Result<Self, String>[src]

Trait Implementations

impl Clone for StepperOutcome[src]

impl Debug for StepperOutcome[src]

impl<'de> Deserialize<'de> for StepperOutcome[src]

impl Eq for StepperOutcome[src]

impl PartialEq<StepperOutcome> for StepperOutcome[src]

impl Serialize for StepperOutcome[src]

impl StructuralEq for StepperOutcome[src]

impl StructuralPartialEq for StepperOutcome[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.