pub struct AdapterRuntimeRegistry<T> { /* private fields */ }Expand description
Runtime implementations keyed by the same revisioned family binding used by the declarative adapter registry.
T is intentionally generic: native shells may store process/parser
implementations while WASM consumers may store pure client handlers. The
registry itself performs no I/O and does not prescribe an execution model.
Implementations§
Source§impl<T> AdapterRuntimeRegistry<T>
impl<T> AdapterRuntimeRegistry<T>
pub fn insert( &mut self, family: AdapterFamily, binding: AdapterBinding, implementation: T, ) -> Result<(), AdapterRuntimeRegistryError>
pub fn resolve( &self, family: AdapterFamily, binding: &AdapterBinding, ) -> Result<&T, AdapterRuntimeRegistryError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<T: Clone> Clone for AdapterRuntimeRegistry<T>
impl<T: Clone> Clone for AdapterRuntimeRegistry<T>
Source§impl<T: Debug> Debug for AdapterRuntimeRegistry<T>
impl<T: Debug> Debug for AdapterRuntimeRegistry<T>
Auto Trait Implementations§
impl<T> Freeze for AdapterRuntimeRegistry<T>
impl<T> RefUnwindSafe for AdapterRuntimeRegistry<T>
impl<T> Send for AdapterRuntimeRegistry<T>
impl<T> Sync for AdapterRuntimeRegistry<T>
impl<T> Unpin for AdapterRuntimeRegistry<T>
impl<T> UnsafeUnpin for AdapterRuntimeRegistry<T>
impl<T> UnwindSafe for AdapterRuntimeRegistry<T>
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