pub enum Resolution {
Found {
id: String,
status: TenantStatus,
},
Unknown,
}Expand description
What a deployment’s registry says about a host.
The design sketch had three arms — Found(Tenant), Unknown,
Degraded(TenantId) — but a Tenant already carries its status, so
the third was the same fact twice and two places to keep in step. It
also could not work: a ResolveTenant impl lives in a runtime crate,
and if the arm carried a Tenant the constructor would have to be
pub, which is exactly what §3 wants to avoid. So the trait reports
what the registry said and core mints the Tenant.
Variants§
Found
A registry row for this host.
Fields
§
status: TenantStatusThe row’s status, parsed fail-closed by
TenantStatus::parse.
Unknown
No row for this host: 404 unknown-tenant.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
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 Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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.