pub enum OutboundMessage {
Heartbeat {
target: NodeId,
msg: SyncHeartbeat,
},
SyncRequest {
target: NodeId,
msg: SyncRequest,
},
}Expand description
Outbound wire message the runtime layer ships. The runtime
routes by target — every variant identifies the destination
node id.
Variants§
Heartbeat
Periodic liveness + tail-seq heartbeat. Emitted to every replica in the channel’s replica set on every tick.
SyncRequest
Replica → leader pull request. Emitted by tick when the
believed leader’s last-observed tail_seq exceeds the local
tail_seq (i.e., we’re behind). One request per lagging
tick; the leader’s SyncResponse advances the local tail
and the next tick re-evaluates lag. Bounded by
chunk_max_bytes from TickInputs.
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundMessage
impl Debug for OutboundMessage
Source§impl PartialEq for OutboundMessage
impl PartialEq for OutboundMessage
Source§fn eq(&self, other: &OutboundMessage) -> bool
fn eq(&self, other: &OutboundMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OutboundMessage
impl StructuralPartialEq for OutboundMessage
Auto Trait Implementations§
impl Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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.