pub struct DispatchRuntime { /* private fields */ }Expand description
Provider + handler registry for one host instance.
This is a plain handle: obtaining the provider or registry requires holding
the runtime (or the Host that owns it), never an ambient task-local.
Implementations§
Source§impl DispatchRuntime
impl DispatchRuntime
pub fn new( provider: Arc<ServiceProvider>, handler_cache: Arc<HandlerCache>, ) -> DispatchRuntime
Sourcepub fn provider(&self) -> &Arc<ServiceProvider> ⓘ
pub fn provider(&self) -> &Arc<ServiceProvider> ⓘ
The host’s root service provider (rust-dix).
Sourcepub fn handler_cache(&self) -> &Arc<HandlerCache> ⓘ
pub fn handler_cache(&self) -> &Arc<HandlerCache> ⓘ
The compiled handler registry of this host.
Trait Implementations§
Source§impl Clone for DispatchRuntime
impl Clone for DispatchRuntime
Source§fn clone(&self) -> DispatchRuntime
fn clone(&self) -> DispatchRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DispatchRuntime
impl !UnwindSafe for DispatchRuntime
impl Forget for DispatchRuntime
impl Freeze for DispatchRuntime
impl Move for DispatchRuntime
impl Send for DispatchRuntime
impl Sync for DispatchRuntime
impl Unpin for DispatchRuntime
impl UnsafeUnpin for DispatchRuntime
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