Trait TypedProcedure

Source
pub trait TypedProcedure<Cx: TripleS + Clone, Output: Send + Sync + Serialize + Type, Arg: Send + Sync + DeserializeOwned + Type>: Procedure<Cx, Output, Arg> {
    // Required method
    fn specta_type(
        &self,
        name: Cow<'static, str>,
        map: &mut TypeMap,
    ) -> FunctionDataType;
}
Expand description

A typed extension to Procedure.

Required Methods§

Source

fn specta_type( &self, name: Cow<'static, str>, map: &mut TypeMap, ) -> FunctionDataType

Get the FunctionDataType of this procedure.

Implementors§

Source§

impl<Cx: TripleS + Clone, Output: Send + Sync + Serialize + Type, Arg: Send + Sync + 'static + DeserializeOwned + Type, Proc: Procedure<Cx, Output, Arg> + ?Sized> TypedProcedure<Cx, Output, Arg> for Proc