pub struct HandlerRegistration {
pub register: fn(Runtime) -> BoxFuture<'static, Result<()>>,
}
Expand description
Registration entry for automatic handler registration via inventory
Fields§
§register: fn(Runtime) -> BoxFuture<'static, Result<()>>
Given a runtime instance, returns a future that registers one handler
Trait Implementations§
impl Collect for HandlerRegistration
Auto Trait Implementations§
impl Freeze for HandlerRegistration
impl RefUnwindSafe for HandlerRegistration
impl Send for HandlerRegistration
impl Sync for HandlerRegistration
impl Unpin for HandlerRegistration
impl UnwindSafe for HandlerRegistration
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