pub struct ServerReplicationState {
pub config: ReplicationConfig,
pub primary: Option<PrimaryReplication>,
}Expand description
Replication state exposed to the HTTP server.
Fields§
§config: ReplicationConfig§primary: Option<PrimaryReplication>Auto Trait Implementations§
impl !Freeze for ServerReplicationState
impl !RefUnwindSafe for ServerReplicationState
impl !UnwindSafe for ServerReplicationState
impl Forget for ServerReplicationState
impl Move for ServerReplicationState
impl Send for ServerReplicationStatewhere
RawVecInner: Send,
RawTable<(String, ())>: Send,
Arc<WalBuffer>: Send,
Arc<LogicalWalSpool>: Send,
RwLock<Vec<ReplicaState>>: Send,
RwLock<BTreeMap<String, BTreeMap<String, String>>>: Send,
Mutex<u64>: Send,
Atomic<u32>: Send,
Arc<UnifiedStore>: Send,
Mutex<Option<String>>: Send,
Mutex<()>: Send,
RwLock<BTreeMap<String, ReplicationSlot>>: Send,
Arc<CommitWaiter>: Send,
Atomic<u64>: Send,
impl Sync for ServerReplicationStatewhere
RawVecInner: Sync,
RawTable<(String, ())>: Sync,
Arc<WalBuffer>: Sync,
Arc<LogicalWalSpool>: Sync,
RwLock<Vec<ReplicaState>>: Sync,
RwLock<BTreeMap<String, BTreeMap<String, String>>>: Sync,
Mutex<u64>: Sync,
Atomic<u32>: Sync,
Arc<UnifiedStore>: Sync,
Mutex<Option<String>>: Sync,
Mutex<()>: Sync,
RwLock<BTreeMap<String, ReplicationSlot>>: Sync,
Arc<CommitWaiter>: Sync,
Atomic<u64>: Sync,
impl Unpin for ServerReplicationStatewhere
*const u8 is !null: Unpin,
Arc<WalBuffer>: Unpin,
Arc<LogicalWalSpool>: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
*const LeafNode<String, BTreeMap<String, String>> is !null: Unpin,
Box<(String, BTreeMap<String, String>)>: Unpin,
Arc<UnifiedStore>: Unpin,
*const LeafNode<String, ReplicationSlot> is !null: Unpin,
Box<(String, ReplicationSlot)>: Unpin,
Arc<CommitWaiter>: Unpin,
Align8<u64>: Unpin,
impl UnsafeUnpin for ServerReplicationStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
*const ArcInner<WalBuffer> is !null: UnsafeUnpin,
PhantomData<ArcInner<WalBuffer>>: UnsafeUnpin,
*const ArcInner<LogicalWalSpool> is !null: UnsafeUnpin,
PhantomData<ArcInner<LogicalWalSpool>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
PhantomData<ReplicaState>: UnsafeUnpin,
*const LeafNode<String, BTreeMap<String, String>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BTreeMap<String, String>)>>: UnsafeUnpin,
*const ArcInner<UnifiedStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<UnifiedStore>>: UnsafeUnpin,
*const LeafNode<String, ReplicationSlot> is !null: UnsafeUnpin,
PhantomData<Box<(String, ReplicationSlot)>>: UnsafeUnpin,
*const ArcInner<CommitWaiter> is !null: UnsafeUnpin,
PhantomData<ArcInner<CommitWaiter>>: UnsafeUnpin,
Align8<u64>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request