pub struct WrappedProcedure<Cx: TripleS + Clone, Output: Send + Sync + Serialize + Type, Arg: Send + Sync + 'static + DeserializeOwned + Type>(/* private fields */);
Expand description
A generic-wrapped Procedure
.
This is necessary so the GenericProcedure
trait can be
implemented in an object-safe manner.
Trait Implementations§
Source§impl<Cx: TripleS + Clone, Output: Send + Sync + Serialize + Type, Arg: Send + Sync + 'static + DeserializeOwned + Type> GenericProcedure<Cx> for WrappedProcedure<Cx, Output, Arg>
impl<Cx: TripleS + Clone, Output: Send + Sync + Serialize + Type, Arg: Send + Sync + 'static + DeserializeOwned + Type> GenericProcedure<Cx> for WrappedProcedure<Cx, Output, Arg>
Source§fn run<'life0, 'async_trait>(
&'life0 self,
cx: Cx,
data: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
cx: Cx,
data: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run this procedure with the context and a JSON-encoded string
representing the data required.
Source§fn specta_type(
&self,
name: Cow<'static, str>,
map: &mut TypeMap,
) -> FunctionDataType
fn specta_type( &self, name: Cow<'static, str>, map: &mut TypeMap, ) -> FunctionDataType
Get the
FunctionDataType
of this procedure.Auto Trait Implementations§
impl<Cx, Output, Arg> Freeze for WrappedProcedure<Cx, Output, Arg>
impl<Cx, Output, Arg> !RefUnwindSafe for WrappedProcedure<Cx, Output, Arg>
impl<Cx, Output, Arg> Send for WrappedProcedure<Cx, Output, Arg>
impl<Cx, Output, Arg> Sync for WrappedProcedure<Cx, Output, Arg>
impl<Cx, Output, Arg> Unpin for WrappedProcedure<Cx, Output, Arg>
impl<Cx, Output, Arg> !UnwindSafe for WrappedProcedure<Cx, Output, Arg>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more