pub enum MintOwner {
Local,
Remote(SocketAddr),
Unknown,
}Expand description
The mint’s view of who owns a shard right now.
Deliberately coarser than the routing edge’s OwnerView: a mint can only do
two things with the answer — forward to a dialable address, or attempt the
write locally and let the fence rule. An owner that is known but carries no
forward address is therefore Self::Unknown here: there is nothing to dial,
so the truthful outcome is the local attempt’s fence refusal.
Variants§
Local
This node owns the shard: take the ordinary local quorum write.
Remote(SocketAddr)
Another node owns it and is reachable for forwarding at this address.
Unknown
Ownership is not known with confidence (no record, owner believed down, or no forward address): attempt locally and let the fence be the authority.
Trait Implementations§
impl Eq for MintOwner
impl StructuralPartialEq for MintOwner
Auto Trait Implementations§
impl Freeze for MintOwner
impl RefUnwindSafe for MintOwner
impl Send for MintOwner
impl Sync for MintOwner
impl Unpin for MintOwner
impl UnsafeUnpin for MintOwner
impl UnwindSafe for MintOwner
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request