pub enum RuntimeCommand {
Open {
mode: OpenMode,
reply: Sender<Result<()>>,
},
Close {
reply: Sender<Result<()>>,
},
ChangeRole {
epoch: Epoch,
role: Role,
reply: Sender<Result<()>>,
},
UpdateEpoch {
epoch: Epoch,
reply: Sender<Result<()>>,
},
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<()>>,
},
OnDataLoss {
reply: Sender<Result<DataLossAction>>,
},
RevokeWriteStatus {
reply: Sender<Result<()>>,
},
GetStatus {
reply: Sender<StatusInfo>,
},
}Expand description
Commands sent by the gRPC ControlServer to the PodRuntime. The runtime processes these with correct ordering (replicator + user events).
Variants§
Open
Close
ChangeRole
UpdateEpoch
UpdateCatchUpConfiguration
UpdateCurrentConfiguration
WaitForCatchUpQuorum
BuildReplica
RemoveReplica
OnDataLoss
Fields
§
reply: Sender<Result<DataLossAction>>RevokeWriteStatus
GetStatus
Fields
§
reply: Sender<StatusInfo>Auto Trait Implementations§
impl Freeze for RuntimeCommand
impl !RefUnwindSafe for RuntimeCommand
impl Send for RuntimeCommand
impl Sync for RuntimeCommand
impl Unpin for RuntimeCommand
impl UnsafeUnpin for RuntimeCommand
impl !UnwindSafe for RuntimeCommand
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