pub struct KeeperConfig {
pub backs: Vec<String>,
pub addrs: Vec<String>,
pub this: usize,
pub id: u128,
pub ready: Option<Sender<bool>>,
pub shutdown: Option<Receiver<()>>,
}Expand description
Configuration representing a single keeper.
Fields§
§backs: Vec<String>The addresses of back-ends
addrs: Vec<String>The addresses of keepers
this: usizeThe index of this back-end
id: u128Non zero incarnation identifier
ready: Option<Sender<bool>>Send a value when the keeper is ready. The distributed key-value service should be ready to serve when any of the keepers is ready.
shutdown: Option<Receiver<()>>When a message is received on this channel, it should trigger a graceful shutdown of the server. If no channel is present, then no graceful shutdown mechanism needs to be implemented.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeeperConfig
impl RefUnwindSafe for KeeperConfig
impl Send for KeeperConfig
impl Sync for KeeperConfig
impl Unpin for KeeperConfig
impl UnwindSafe for KeeperConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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