Struct aws_smithy_http_server::plugin::OperationFn
source · pub struct OperationFn<F> { /* private fields */ }
Expand description
An adapter to convert a Fn(ShapeId, T) -> Service
closure into a Plugin
. See plugin_from_operation_fn
for more details.
Trait Implementations§
source§impl<Ser, Op, T, NewService, F> Plugin<Ser, Op, T> for OperationFn<F>where
Ser: ContainsOperation<Op>,
F: Fn(Ser::Operations, T) -> NewService,
impl<Ser, Op, T, NewService, F> Plugin<Ser, Op, T> for OperationFn<F>where Ser: ContainsOperation<Op>, F: Fn(Ser::Operations, T) -> NewService,
Auto Trait Implementations§
impl<F> RefUnwindSafe for OperationFn<F>where F: RefUnwindSafe,
impl<F> Send for OperationFn<F>where F: Send,
impl<F> Sync for OperationFn<F>where F: Sync,
impl<F> Unpin for OperationFn<F>where F: Unpin,
impl<F> UnwindSafe for OperationFn<F>where F: UnwindSafe,
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