pub enum Inbound {
Heartbeat {
from: NodeId,
msg: SyncHeartbeat,
},
SyncRequest {
from: NodeId,
msg: SyncRequest,
},
SyncResponse {
from: NodeId,
msg: SyncResponse,
},
SyncNack {
from: NodeId,
msg: SyncNack,
},
Shutdown,
}Expand description
Inbound event the runtime processes. The mesh-side dispatcher pushes one of these into the runtime’s inbox per inbound wire frame; the runtime’s task drains the receiver on every wakeup.
Variants§
Heartbeat
Peer’s heartbeat — record into the tracker.
SyncRequest
Peer (replica) asked us (leader) for events. Run
handle_sync_request against the local file + dispatch
the response or nack.
SyncResponse
Peer (leader) shipped us a chunk. Apply via
apply_sync_response; on success advance our tail.
SyncNack
Peer (leader) rejected our request with a typed error.
Shutdown
Shutdown signal from Redex::open_file cleanup or from
channel-close. Drives coordinator.transition_to(Idle, ChannelClose) and exits the task loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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