Trait rspc::Resolver

source ·
pub trait Resolver<TCtx, TMarker> {
    type Result;

    // Required methods
    fn exec(&self, ctx: TCtx, input: Value) -> Result<LayerResult, ExecError>;
    fn typedef(defs: &mut TypeDefs) -> ProcedureDataType;
}

Required Associated Types§

Required Methods§

source

fn exec(&self, ctx: TCtx, input: Value) -> Result<LayerResult, ExecError>

source

fn typedef(defs: &mut TypeDefs) -> ProcedureDataType

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TFunc, TCtx, TArg, TResult, TResultMarker> Resolver<TCtx, DoubleArgMarker<TArg, TResultMarker>> for TFunc
where TArg: DeserializeOwned + Type, TFunc: Fn(TCtx, TArg) -> TResult, TResult: RequestLayer<TResultMarker>,

§

type Result = TResult