pub enum SyncOutcome {
Ok(SyncReport),
Failed {
error_code: String,
message: String,
details: Option<Value>,
},
RealtimeUnavailable {
state: RealtimeState,
reason_code: Option<String>,
retry_delay_ms: u64,
},
BudgetExhausted(SyncReport),
}Expand description
sync() never panics or errors out-of-band: transport and protocol
failures come back as Failed (the driver’s { ok: false }).
Variants§
Ok(SyncReport)
Failed
§8.8: the required policy refused a round because the socket is not
connected. reason_code is present for lost and refused states,
and retry_delay_ms is the delay of the background retry intent this
outcome scheduled.
BudgetExhausted(SyncReport)
§7.7: the round budget ran out while the client was still not idle. The aggregate report of every round that ran is retained. This is a partial success, not a failure, and MUST NOT be read as idle.
Implementations§
Trait Implementations§
Source§impl Clone for SyncOutcome
impl Clone for SyncOutcome
Auto Trait Implementations§
impl Freeze for SyncOutcome
impl RefUnwindSafe for SyncOutcome
impl Send for SyncOutcome
impl Sync for SyncOutcome
impl Unpin for SyncOutcome
impl UnsafeUnpin for SyncOutcome
impl UnwindSafe for SyncOutcome
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