pub enum AdapterResolution {
Found(RegisteredAdapter),
UnknownId,
VersionMismatch {
registered_version: String,
},
}Expand description
Resolution outcome for an (adapter_id, adapter_version) pair.
Distinguishes “no such adapter” from “wrong version of a known
adapter” so the router can return precise RouteErrors
without the registry implementation having to know about
RouteError itself.
Variants§
Found(RegisteredAdapter)
Adapter found and version matches.
UnknownId
Adapter id is unknown.
VersionMismatch
Adapter id is known but the registered version is not the one the request asked for. Carries the registered version so the router can name both sides in the error.
Trait Implementations§
Source§impl Clone for AdapterResolution
impl Clone for AdapterResolution
Source§fn clone(&self) -> AdapterResolution
fn clone(&self) -> AdapterResolution
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 AdapterResolution
impl Debug for AdapterResolution
Source§impl PartialEq for AdapterResolution
impl PartialEq for AdapterResolution
Source§fn eq(&self, other: &AdapterResolution) -> bool
fn eq(&self, other: &AdapterResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AdapterResolution
impl StructuralPartialEq for AdapterResolution
Auto Trait Implementations§
impl Freeze for AdapterResolution
impl RefUnwindSafe for AdapterResolution
impl Send for AdapterResolution
impl Sync for AdapterResolution
impl Unpin for AdapterResolution
impl UnsafeUnpin for AdapterResolution
impl UnwindSafe for AdapterResolution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.