pub enum InstructionParam<TCtx> {
String(String),
Func(Box<dyn Fn(&TCtx) -> Result<String, BoxedError> + Send + Sync>),
AsyncFunc(Box<dyn Fn(&TCtx) -> BoxFuture<'_, Result<String, BoxedError>> + Send + Sync>),
}Variants§
String(String)
Func(Box<dyn Fn(&TCtx) -> Result<String, BoxedError> + Send + Sync>)
AsyncFunc(Box<dyn Fn(&TCtx) -> BoxFuture<'_, Result<String, BoxedError>> + Send + Sync>)
Implementations§
Source§impl<TCtx> InstructionParam<TCtx>
impl<TCtx> InstructionParam<TCtx>
Trait Implementations§
Source§impl<TCtx> From<&str> for InstructionParam<TCtx>
impl<TCtx> From<&str> for InstructionParam<TCtx>
Source§impl<TCtx, F> From<F> for InstructionParam<TCtx>
impl<TCtx, F> From<F> for InstructionParam<TCtx>
Auto Trait Implementations§
impl<TCtx> Freeze for InstructionParam<TCtx>
impl<TCtx> !RefUnwindSafe for InstructionParam<TCtx>
impl<TCtx> Send for InstructionParam<TCtx>
impl<TCtx> Sync for InstructionParam<TCtx>
impl<TCtx> Unpin for InstructionParam<TCtx>
impl<TCtx> !UnwindSafe for InstructionParam<TCtx>
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