pub struct StaticShardDirectory { /* private fields */ }Expand description
The static directory: static peer config + live local-ownership, the SS-3 quorum-replicated shard-owner overlay, and a peer-liveness overlay, all read live from the cluster store.
Implementations§
Source§impl StaticShardDirectory
impl StaticShardDirectory
Sourcepub fn new(
store: Arc<HaematiteStore>,
peers: Vec<DirectoryPeer>,
self_node_id: Option<String>,
) -> Self
pub fn new( store: Arc<HaematiteStore>, peers: Vec<DirectoryPeer>, self_node_id: Option<String>, ) -> Self
Build a directory over store, the configured peers, and this node’s
own distribution name self_node_id (used to resolve an SS-3 shard-owner
record that names this node).
Trait Implementations§
Source§impl MintShardOwners for StaticShardDirectory
The production owner directory: the R-2 static directory with its SS-3
quorum-replicated shard-owner overlay and peer-liveness gate — the SAME
resolver the request-routing edge consults, so the mint and a signal for the
same shard can never disagree about who owns it.
impl MintShardOwners for StaticShardDirectory
The production owner directory: the R-2 static directory with its SS-3 quorum-replicated shard-owner overlay and peer-liveness gate — the SAME resolver the request-routing edge consults, so the mint and a signal for the same shard can never disagree about who owns it.
Auto Trait Implementations§
impl !RefUnwindSafe for StaticShardDirectory
impl !UnwindSafe for StaticShardDirectory
impl Freeze for StaticShardDirectory
impl Send for StaticShardDirectory
impl Sync for StaticShardDirectory
impl Unpin for StaticShardDirectory
impl UnsafeUnpin for StaticShardDirectory
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> 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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
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