pub struct AutonomousOperationHandler { /* private fields */ }Expand description
Handler for autonomous operation during network partitions
Implements the PartitionHandler trait to respond to partition detection and healing events. When a partition is detected, the handler enters autonomous mode, allowing the node to continue local operations while buffering data for eventual synchronization.
Implementations§
Source§impl AutonomousOperationHandler
impl AutonomousOperationHandler
Sourcepub fn is_autonomous(&self) -> bool
pub fn is_autonomous(&self) -> bool
Check if currently in autonomous operation mode
Sourcepub fn get_state(&self) -> AutonomousState
pub fn get_state(&self) -> AutonomousState
Get current autonomous state
Trait Implementations§
Source§impl Debug for AutonomousOperationHandler
impl Debug for AutonomousOperationHandler
Source§impl Default for AutonomousOperationHandler
impl Default for AutonomousOperationHandler
Source§impl PartitionHandler for AutonomousOperationHandler
impl PartitionHandler for AutonomousOperationHandler
Source§fn on_partition_detected(&self, event: &PartitionEvent)
fn on_partition_detected(&self, event: &PartitionEvent)
Handle partition detected event
Source§fn on_partition_healed(&self, event: &PartitionEvent)
fn on_partition_healed(&self, event: &PartitionEvent)
Handle partition healed event
Auto Trait Implementations§
impl Freeze for AutonomousOperationHandler
impl RefUnwindSafe for AutonomousOperationHandler
impl Send for AutonomousOperationHandler
impl Sync for AutonomousOperationHandler
impl Unpin for AutonomousOperationHandler
impl UnsafeUnpin for AutonomousOperationHandler
impl UnwindSafe for AutonomousOperationHandler
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