referrerpolicy=no-referrer-when-downgrade

Type Alias sp_runtime::DispatchResult

source ·
pub type DispatchResult = Result<(), DispatchError>;
Expand description

This is the legacy return type of Dispatchable. It is still exposed for compatibility reasons. The new return type is DispatchResultWithInfo. FRAME runtimes should use frame_support::dispatch::DispatchResult.

Aliased Type§

enum DispatchResult {
    Ok(()),
    Err(DispatchError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(DispatchError)

Contains the error value