pub struct Dispatch {
pub backend: Arc<dyn Backend>,
pub name: String,
}Expand description
Outcome of Router::dispatch — chosen backend plus the diagnostic
info the lifecycle layer needs to report success / failure later.
Fields§
§backend: Arc<dyn Backend>Chosen backend (use exactly once; report the outcome via
Router::record_success / record_failure).
name: StringStable name (Backend::name() snapshot — saves a vtable hop
at outcome-recording time).
Auto Trait Implementations§
impl Freeze for Dispatch
impl !RefUnwindSafe for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
impl !UnwindSafe for Dispatch
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