referrerpolicy=no-referrer-when-downgrade

Outcome

Type Alias Outcome 

Source
pub type Outcome = Result<(), FailureReason>;
Expand description

How a request ended.

Ok(()) means the relay chain applied it, Err(reason) that it did not. Shared by every response in this protocol rather than one outcome type per request, the same way a pallet has one Error enum instead of one per extrinsic. Encodes as 0x00 for success and 0x01 plus the reason for failure.

Aliased Type§

pub enum Outcome {
    Ok(()),
    Err(FailureReason),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(FailureReason)

Contains the error value