pub struct AtomicNodeRole(/* private fields */);Expand description
Thread-safe, runtime-mutable node role for failover support.
Wraps an AtomicU8 so the read-only middleware and health endpoint
always see the current role, even after a sentinel-triggered promotion.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AtomicNodeRole
impl RefUnwindSafe for AtomicNodeRole
impl Send for AtomicNodeRole
impl Sync for AtomicNodeRole
impl Unpin for AtomicNodeRole
impl UnsafeUnpin for AtomicNodeRole
impl UnwindSafe for AtomicNodeRole
Blanket Implementations§
impl<T> Allocation for T
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