pub enum ReplicatorControlEvent {
Open {
mode: OpenMode,
reply: Sender<Result<()>>,
},
Close {
reply: Sender<Result<()>>,
},
Abort,
ChangeRole {
epoch: Epoch,
role: Role,
reply: Sender<Result<()>>,
},
UpdateEpoch {
epoch: Epoch,
reply: Sender<Result<()>>,
},
OnDataLoss {
reply: Sender<Result<DataLossAction>>,
},
UpdateCatchUpConfiguration {
current: ReplicaSetConfig,
previous: ReplicaSetConfig,
reply: Sender<Result<()>>,
},
UpdateCurrentConfiguration {
current: ReplicaSetConfig,
reply: Sender<Result<()>>,
},
WaitForCatchUpQuorum {
mode: ReplicaSetQuorumMode,
reply: Sender<Result<()>>,
},
BuildReplica {
replica: ReplicaInfo,
reply: Sender<Result<()>>,
},
RemoveReplica {
replica_id: ReplicaId,
reply: Sender<Result<()>>,
},
}Expand description
Control events delivered to the replicator actor by the runtime. Processed sequentially on the control channel.
Variants§
Open
Close
Abort
ChangeRole
UpdateEpoch
OnDataLoss
Fields
§
reply: Sender<Result<DataLossAction>>UpdateCatchUpConfiguration
UpdateCurrentConfiguration
WaitForCatchUpQuorum
BuildReplica
RemoveReplica
Auto Trait Implementations§
impl Freeze for ReplicatorControlEvent
impl !RefUnwindSafe for ReplicatorControlEvent
impl Send for ReplicatorControlEvent
impl Sync for ReplicatorControlEvent
impl Unpin for ReplicatorControlEvent
impl UnsafeUnpin for ReplicatorControlEvent
impl !UnwindSafe for ReplicatorControlEvent
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> 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