#[repr(u8)]pub enum MaintenanceMode {
Normal = 0,
ReadOnly = 1,
SyncPaused = 2,
}Expand description
Runtime maintenance policy for an ExchangeService.
Variants§
Normal = 0
Bidirectional synchronization and bootstrap are enabled.
ReadOnly = 1
Pull and bootstrap remain available, but exchanges containing writes are rejected.
SyncPaused = 2
All exchange and bootstrap work is rejected with a retryable typed error.
Implementations§
Source§impl MaintenanceMode
impl MaintenanceMode
Sourcepub const fn allows_exchange(self, has_operations: bool) -> bool
pub const fn allows_exchange(self, has_operations: bool) -> bool
Whether one exchange may proceed in this mode.
Sourcepub const fn allows_bootstrap(self) -> bool
pub const fn allows_bootstrap(self) -> bool
Whether snapshot bootstrap may proceed in this mode.
Trait Implementations§
Source§impl Clone for MaintenanceMode
impl Clone for MaintenanceMode
impl Copy for MaintenanceMode
Source§impl Debug for MaintenanceMode
impl Debug for MaintenanceMode
Source§impl Default for MaintenanceMode
impl Default for MaintenanceMode
impl Eq for MaintenanceMode
Source§impl PartialEq for MaintenanceMode
impl PartialEq for MaintenanceMode
impl StructuralPartialEq for MaintenanceMode
Auto Trait Implementations§
impl Freeze for MaintenanceMode
impl RefUnwindSafe for MaintenanceMode
impl Send for MaintenanceMode
impl Sync for MaintenanceMode
impl Unpin for MaintenanceMode
impl UnsafeUnpin for MaintenanceMode
impl UnwindSafe for MaintenanceMode
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more