Trait Context

Source
pub trait Context: Send + Sync {
    type Ctx;

    // Required method
    fn ctx(&self) -> &Self::Ctx;
}
Expand description

Context Interface used to pass around any kind of state that the RPC command will use.

Required Associated Types§

Required Methods§

Source

fn ctx(&self) -> &Self::Ctx

Implementors§