pub struct NoopProcessRegistry;Expand description
A ProcessRegistry that never stores any mappings.
Every lookup returns None. Use this as the default when routing is
managed externally or not required.
§⚠️ Routing loss warning
NoopProcessRegistry discards every routing registration silently.
All lookup calls return None. Inbound messages for existing processes
will not be routed. Do not use in production when message routing is needed.
This type is available in all build configurations so it can serve as a
default type parameter in EngineBuilder. However, EngineBuilder::new
(which wires this as the default) is only available with the testing
feature or in cfg(test). Production binaries must call
EngineBuilder::with_stores instead.
Trait Implementations§
Source§impl Clone for NoopProcessRegistry
impl Clone for NoopProcessRegistry
Source§fn clone(&self) -> NoopProcessRegistry
fn clone(&self) -> NoopProcessRegistry
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 moreimpl Copy for NoopProcessRegistry
Source§impl Debug for NoopProcessRegistry
impl Debug for NoopProcessRegistry
Source§impl Default for NoopProcessRegistry
impl Default for NoopProcessRegistry
Source§fn default() -> NoopProcessRegistry
fn default() -> NoopProcessRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopProcessRegistry
impl RefUnwindSafe for NoopProcessRegistry
impl Send for NoopProcessRegistry
impl Sync for NoopProcessRegistry
impl Unpin for NoopProcessRegistry
impl UnsafeUnpin for NoopProcessRegistry
impl UnwindSafe for NoopProcessRegistry
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