pub enum ReplicationState {
Handshake,
None,
Connect,
Connecting,
Sync,
Connected,
Unknown,
}
Expand description
The state of the replication from the point of view of the master,
returned by the role
command.
Variants§
Handshake
the instance is in handshake with its master
None
the instance needs to connect to its master
Connect
the instance in not active
Connecting
the master-replica connection is in progress
Sync
the master and replica are trying to perform the synchronization
Connected
the replica is online
Unknown
instance state is unknown
Trait Implementations§
Source§impl Debug for ReplicationState
impl Debug for ReplicationState
Source§impl<'de> Deserialize<'de> for ReplicationState
impl<'de> Deserialize<'de> for ReplicationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReplicationState
impl RefUnwindSafe for ReplicationState
impl Send for ReplicationState
impl Sync for ReplicationState
impl Unpin for ReplicationState
impl UnwindSafe for ReplicationState
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