pub struct SyncEngine<A: Authenticator> { /* private fields */ }Expand description
Runtime sync engine for the explicit Postgres-to-Salesforce vertical slice.
Implementations§
Source§impl<A: Authenticator> SyncEngine<A>
impl<A: Authenticator> SyncEngine<A>
Sourcepub fn builder(salesforce_client: ForceClient<A>) -> SyncEngineBuilder<A>
pub fn builder(salesforce_client: ForceClient<A>) -> SyncEngineBuilder<A>
Creates a builder for a runtime using the given Salesforce client.
Sourcepub async fn run_capture_postgres_once(&self) -> Result<usize, ForceSyncError>
pub async fn run_capture_postgres_once(&self) -> Result<usize, ForceSyncError>
Captures a single configured batch from the Postgres outbox.
§Errors
Returns an error if the outbox capture fails.
Sourcepub async fn run_apply_once(&self) -> Result<usize, ForceSyncError>
pub async fn run_apply_once(&self) -> Result<usize, ForceSyncError>
Leases and applies one configured batch of ready tasks.
§Errors
Returns an error if task loading or control-plane updates fail.
Sourcepub async fn run_reconcile_once(&self) -> Result<usize, ForceSyncError>
pub async fn run_reconcile_once(&self) -> Result<usize, ForceSyncError>
Runs one reconciliation pass and enqueues repair tasks for drift.
§Errors
Returns an error if drift detection or task insertion fails.
Trait Implementations§
Source§impl<A: Clone + Authenticator> Clone for SyncEngine<A>
impl<A: Clone + Authenticator> Clone for SyncEngine<A>
Source§fn clone(&self) -> SyncEngine<A>
fn clone(&self) -> SyncEngine<A>
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 moreAuto Trait Implementations§
impl<A> Freeze for SyncEngine<A>
impl<A> !RefUnwindSafe for SyncEngine<A>
impl<A> Send for SyncEngine<A>
impl<A> Sync for SyncEngine<A>
impl<A> Unpin for SyncEngine<A>
impl<A> UnsafeUnpin for SyncEngine<A>
impl<A> !UnwindSafe for SyncEngine<A>
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> 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