pub struct BoxedDispatch {
pub req_type_id: TypeId,
pub dispatch: fn(Arc<ServiceProvider>, Box<dyn Any + Send>) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send>, Error>> + Send>>,
}Expand description
Inventory item tying a request type to its type-erased dispatch function.
Fields§
§req_type_id: TypeIdThe request type’s TypeId.
dispatch: fn(Arc<ServiceProvider>, Box<dyn Any + Send>) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send>, Error>> + Send>>Dispatch for that request type.
Trait Implementations§
impl Collect for BoxedDispatch
Auto Trait Implementations§
impl Forget for BoxedDispatch
impl Freeze for BoxedDispatch
impl RefUnwindSafe for BoxedDispatch
impl Send for BoxedDispatch
impl Sync for BoxedDispatch
impl Unpin for BoxedDispatch
impl UnsafeUnpin for BoxedDispatch
impl UnwindSafe for BoxedDispatch
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