pub struct ApiMethodHandler {
pub operation_id: &'static str,
pub handler: Arc<dyn for<'a> Fn(&'a Value) -> BoxFuture<'a, Result<Response>> + Send + Sync>,
}Fields§
§operation_id: &'static str§handler: Arc<dyn for<'a> Fn(&'a Value) -> BoxFuture<'a, Result<Response>> + Send + Sync>Trait Implementations§
Source§impl Clone for ApiMethodHandler
impl Clone for ApiMethodHandler
Auto Trait Implementations§
impl !RefUnwindSafe for ApiMethodHandler
impl !UnwindSafe for ApiMethodHandler
impl Freeze for ApiMethodHandler
impl Send for ApiMethodHandler
impl Sync for ApiMethodHandler
impl Unpin for ApiMethodHandler
impl UnsafeUnpin for ApiMethodHandler
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