pub struct WalReplicator;Expand description
WAL-based quorum replicator factory. Creates the actor, data plane, streams, and returns handles.
Implementations§
Source§impl WalReplicator
impl WalReplicator
Sourcepub async fn create(
replica_id: ReplicaId,
data_bind: &str,
fault_tx: Sender<FaultType>,
state_provider_tx: UnboundedSender<StateProviderEvent>,
) -> Result<(ReplicatorHandle, ServiceContext)>
pub async fn create( replica_id: ReplicaId, data_bind: &str, fault_tx: Sender<FaultType>, state_provider_tx: UnboundedSender<StateProviderEvent>, ) -> Result<(ReplicatorHandle, ServiceContext)>
Create a new WalReplicator. Starts:
- WalReplicatorActor (event loop processing control_rx + data_rx)
- Data plane gRPC server (SecondaryReceiver)
- Replication + copy streams
Returns (runtime_handle, user_handles):
- runtime_handle: for runtime to send lifecycle events
- user_handles: for user to read/write replicated data
Auto Trait Implementations§
impl Freeze for WalReplicator
impl RefUnwindSafe for WalReplicator
impl Send for WalReplicator
impl Sync for WalReplicator
impl Unpin for WalReplicator
impl UnsafeUnpin for WalReplicator
impl UnwindSafe for WalReplicator
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> 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> 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