pub enum ForceSyncError {
Show 14 variants
Pool(PoolError),
Database(Error),
MissingSourceCursor,
TransactionRollback {
callback: Box<Self>,
rollback: Error,
},
EmptySyncKeyPart {
part: &'static str,
},
NotFound {
entity: &'static str,
},
MissingConfiguration {
field: &'static str,
},
InvalidLeaseDuration,
Json(Error),
PubSub(Box<PubSubError>),
InvalidOutboxOperation {
op: String,
},
InvalidOutboxCursor {
cursor: String,
},
InvalidStoredValue {
field: &'static str,
value: String,
},
NotImplemented,
}Expand description
Database and migration errors.
Variants§
Pool(PoolError)
Postgres pool acquisition failure.
Database(Error)
Postgres client or query failure.
MissingSourceCursor
A replay cursor is required to append journal entries.
TransactionRollback
The transaction callback failed and the rollback also failed.
Fields
EmptySyncKeyPart
A required sync key part was empty.
NotFound
A requested sync record was not found.
MissingConfiguration
A required engine configuration field was not provided.
InvalidLeaseDuration
A lease duration could not be represented as a Postgres interval timestamp.
Json(Error)
A JSON payload could not be decoded.
PubSub(Box<PubSubError>)
A Salesforce Pub/Sub operation failed.
InvalidOutboxOperation
An outbox row carried an unexpected operation value.
InvalidOutboxCursor
An outbox row carried an already-encoded or otherwise invalid cursor.
InvalidStoredValue
A stored database value could not be decoded into a domain type.
NotImplemented
Placeholder variant while the crate surface is being implemented.
Trait Implementations§
Source§impl Debug for ForceSyncError
impl Debug for ForceSyncError
Source§impl Display for ForceSyncError
impl Display for ForceSyncError
Source§impl Error for ForceSyncError
impl Error for ForceSyncError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for ForceSyncError
impl From<Error> for ForceSyncError
Source§impl From<Error> for ForceSyncError
impl From<Error> for ForceSyncError
Source§impl From<PubSubError> for ForceSyncError
impl From<PubSubError> for ForceSyncError
Source§fn from(error: PubSubError) -> Self
fn from(error: PubSubError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ForceSyncError
impl !UnwindSafe for ForceSyncError
impl Freeze for ForceSyncError
impl Send for ForceSyncError
impl Sync for ForceSyncError
impl Unpin for ForceSyncError
impl UnsafeUnpin for ForceSyncError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
T in a tonic::Request