#[non_exhaustive]pub enum HaltPdu {
Halt {
from: String,
epoch: u64,
reason: HaltReason,
},
Ack {
from: String,
epoch: u64,
},
}Expand description
Wire shape of a cross-node kill-switch exchange. Mirrors the
MediatorPdu pattern used by ClusterPubSub:
an opaque, serializable message that a HaltTransport carries to a
peer and that the peer feeds back via ClusterKillSwitch::apply_pdu.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Halt
Ask the receiving node to engage its latch for epoch, bring its
local guarded parties to a safe stop, and ack. Carries the
originator’s node id and the engaging HaltReason so the remote
audit trail matches the coordinator’s.
Ack
Acknowledge that from has quiesced its local parties for epoch.
Trait Implementations§
impl Eq for HaltPdu
impl StructuralPartialEq for HaltPdu
Auto Trait Implementations§
impl Freeze for HaltPdu
impl RefUnwindSafe for HaltPdu
impl Send for HaltPdu
impl Sync for HaltPdu
impl Unpin for HaltPdu
impl UnsafeUnpin for HaltPdu
impl UnwindSafe for HaltPdu
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.