pub struct AdapterRegistry { /* private fields */ }Implementations§
Source§impl AdapterRegistry
impl AdapterRegistry
pub fn new() -> AdapterRegistry
pub fn from_spec( spec: AdapterRegistrySpec, ) -> Result<AdapterRegistry, DataError>
pub fn register_adapter( &mut self, adapter: AdapterSpec, ) -> Result<(), DataError>
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§fn clone(&self) -> AdapterRegistry
fn clone(&self) -> AdapterRegistry
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 moreSource§impl Debug for AdapterRegistry
impl Debug for AdapterRegistry
Source§impl Default for AdapterRegistry
impl Default for AdapterRegistry
Source§fn default() -> AdapterRegistry
fn default() -> AdapterRegistry
Returns the “default value” for a type. Read more
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