pub struct ApplyRequest {
pub membership: Option<Membership>,
pub sig: Option<Signature>,
pub protocol: u32,
pub force: bool,
pub no_switch: bool,
pub no_rollback: bool,
}Fields§
§membership: Option<Membership>§sig: Option<Signature>over kernable.v1.membership
protocol: u32not signed
force: boolNot signed. A membership that names another deployment than the one serving its service
switches to it only once that deployment has caught up: every listener it lists registered
for it within –deployment-switch-lag events of the head (or the deployment wrote events
before: a rollback), and a worker of it connected for every aggregate it lists. Before, the
apply fails FAILED_PRECONDITION not_caught_up: ... naming what it waits for. force
switches at once anyway.
no_switch: boolNot signed. Applies the membership only if it names the deployment that serves its service
already (or the service has no membership yet); otherwise fails FAILED_PRECONDITION
not_serving: .... For a process that starts beside the serving deployment and leaves the
switch to an operator (an app with switch never).
no_rollback: boolNot signed. Refuses a switch to a deployment that served before (it wrote events) with
FAILED_PRECONDITION served_before: ...: switching back is a rollback, which only an
operator does (kernable apply --deployment). For an app with switch caught-up, so an
older deployment’s app that restarts runs beside the serving one instead of taking over.
Trait Implementations§
Source§impl Clone for ApplyRequest
impl Clone for ApplyRequest
Source§impl Debug for ApplyRequest
impl Debug for ApplyRequest
Source§impl Default for ApplyRequest
impl Default for ApplyRequest
Source§impl Message for ApplyRequest
impl Message for ApplyRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ApplyRequest
impl PartialEq for ApplyRequest
impl StructuralPartialEq for ApplyRequest
Auto Trait Implementations§
impl Forget for ApplyRequest
impl Freeze for ApplyRequest
impl Move for ApplyRequest
impl RefUnwindSafe for ApplyRequest
impl Send for ApplyRequest
impl Sync for ApplyRequest
impl Unpin for ApplyRequest
impl UnsafeUnpin for ApplyRequest
impl UnwindSafe for ApplyRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request