Skip to main content

RnxCommandHandler

Trait RnxCommandHandler 

Source
pub trait RnxCommandHandler<State> {
    type Output: RnxOutputStorage;

    const AUTHORIZATION: RnxAuthorization = RnxAuthorization::DenyAll;

    // Required methods
    fn destination(state: &State) -> DestinationHash;
    async fn execute(
        state: &State,
        request: ExecutionRequestRef<'_>,
        output: &mut RnxOutput<'_>,
    ) -> RnxCompletion;
}

Provided Associated Constants§

Source

const AUTHORIZATION: RnxAuthorization = RnxAuthorization::DenyAll

Required Associated Types§

Required Methods§

Source

fn destination(state: &State) -> DestinationHash

Source

async fn execute( state: &State, request: ExecutionRequestRef<'_>, output: &mut RnxOutput<'_>, ) -> RnxCompletion

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§