pub struct AdapterRegistry { /* private fields */ }Implementations§
Source§impl AdapterRegistry
impl AdapterRegistry
pub fn new() -> Self
pub fn from_spec(spec: AdapterRegistrySpec) -> Result<Self>
pub fn register_adapter(&mut self, adapter: AdapterSpec) -> Result<()>
pub fn adapters(&self) -> impl Iterator<Item = &AdapterSpec>
pub fn find_path( &self, source_type: &TypeId, source_representation: &RepresentationId, target_type: &TypeId, target_representation: &RepresentationId, policy: &PlanningPolicy, ) -> PathResolution
Trait Implementations§
Source§impl Clone for AdapterRegistry
impl Clone for AdapterRegistry
Source§impl Debug for AdapterRegistry
impl Debug for AdapterRegistry
Auto Trait Implementations§
impl Freeze for AdapterRegistry
impl RefUnwindSafe for AdapterRegistry
impl Send for AdapterRegistry
impl Sync for AdapterRegistry
impl Unpin for AdapterRegistry
impl UnsafeUnpin for AdapterRegistry
impl UnwindSafe for AdapterRegistry
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