pub struct NoOpFunction;Expand description
The convenient no-operation function for event scripts (Java
NoOpFunction, route no.op): an echo — reply headers and body mirror
the input.
Trait Implementations§
Source§impl ComposableFunction for NoOpFunction
impl ComposableFunction for NoOpFunction
fn handle_event<'life0, 'async_trait>(
&'life0 self,
headers: HashMap<String, String>,
input: EventEnvelope,
_instance: usize,
) -> Pin<Box<dyn Future<Output = Result<EventEnvelope, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for NoOpFunction
impl RefUnwindSafe for NoOpFunction
impl Send for NoOpFunction
impl Sync for NoOpFunction
impl Unpin for NoOpFunction
impl UnsafeUnpin for NoOpFunction
impl UnwindSafe for NoOpFunction
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