pub enum ReplDisklessLoad {
Disabled,
OnEmptyDb,
Swapdb,
}Expand description
Diskless load policy for replicas.
Controls how a replica loads the RDB payload received from a master during diskless replication.
Variants§
Disabled
Never load the RDB directly from the socket (write to disk first).
OnEmptyDb
Load directly from the socket only when the current dataset is empty.
Swapdb
Load directly from the socket, swapping the dataset atomically.
Trait Implementations§
Source§impl Clone for ReplDisklessLoad
impl Clone for ReplDisklessLoad
Source§fn clone(&self) -> ReplDisklessLoad
fn clone(&self) -> ReplDisklessLoad
Returns a duplicate of the value. Read more
1.0.0 · 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 ReplDisklessLoad
impl Debug for ReplDisklessLoad
Source§impl Display for ReplDisklessLoad
impl Display for ReplDisklessLoad
impl Copy for ReplDisklessLoad
Auto Trait Implementations§
impl Freeze for ReplDisklessLoad
impl RefUnwindSafe for ReplDisklessLoad
impl Send for ReplDisklessLoad
impl Sync for ReplDisklessLoad
impl Unpin for ReplDisklessLoad
impl UnsafeUnpin for ReplDisklessLoad
impl UnwindSafe for ReplDisklessLoad
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