pub struct ReplayerErrorFactory;Expand description
Replayer-specific error factories
Implementations§
Source§impl ReplayerErrorFactory
impl ReplayerErrorFactory
Sourcepub fn transaction_replay_error(
transaction_id: u64,
start_lsn: u64,
end_lsn: u64,
message: impl Into<String>,
) -> RecoveryError
pub fn transaction_replay_error( transaction_id: u64, start_lsn: u64, end_lsn: u64, message: impl Into<String>, ) -> RecoveryError
Create transaction replay error
Sourcepub fn operation_replay_error(
transaction_id: u64,
lsn: u64,
operation_type: &str,
operation_index: u64,
message: impl Into<String>,
) -> RecoveryError
pub fn operation_replay_error( transaction_id: u64, lsn: u64, operation_type: &str, operation_index: u64, message: impl Into<String>, ) -> RecoveryError
Create operation replay error
Sourcepub fn batch_replay_error(
batch_size: u64,
processed_count: u64,
failed_count: u64,
start_lsn: u64,
end_lsn: u64,
message: impl Into<String>,
) -> RecoveryError
pub fn batch_replay_error( batch_size: u64, processed_count: u64, failed_count: u64, start_lsn: u64, end_lsn: u64, message: impl Into<String>, ) -> RecoveryError
Create batch replay error
Sourcepub fn rollback_error(
transaction_id: u64,
rollback_lsn: u64,
affected_operations: u64,
reason: &str,
) -> RecoveryError
pub fn rollback_error( transaction_id: u64, rollback_lsn: u64, affected_operations: u64, reason: &str, ) -> RecoveryError
Create rollback error
Sourcepub fn dependency_error(
transaction_id: u64,
operation: &str,
missing_dependency: &str,
dependency_id: u64,
) -> RecoveryError
pub fn dependency_error( transaction_id: u64, operation: &str, missing_dependency: &str, dependency_id: u64, ) -> RecoveryError
Create dependency resolution error
Sourcepub fn state_consistency_error(
transaction_id: u64,
expected_state: &str,
actual_state: &str,
message: impl Into<String>,
) -> RecoveryError
pub fn state_consistency_error( transaction_id: u64, expected_state: &str, actual_state: &str, message: impl Into<String>, ) -> RecoveryError
Create state consistency error
Sourcepub fn resource_error(
transaction_id: u64,
resource_type: &str,
current_usage: u64,
max_limit: u64,
operation: &str,
) -> RecoveryError
pub fn resource_error( transaction_id: u64, resource_type: &str, current_usage: u64, max_limit: u64, operation: &str, ) -> RecoveryError
Create resource constraint error
Sourcepub fn timeout_error(
transaction_id: u64,
operation_type: &str,
timeout_ms: u64,
elapsed_ms: u64,
) -> RecoveryError
pub fn timeout_error( transaction_id: u64, operation_type: &str, timeout_ms: u64, elapsed_ms: u64, ) -> RecoveryError
Create replayer timeout error
Sourcepub fn initialization_error(
message: impl Into<String>,
component: &str,
config_details: Option<HashMap<String, String>>,
) -> RecoveryError
pub fn initialization_error( message: impl Into<String>, component: &str, config_details: Option<HashMap<String, String>>, ) -> RecoveryError
Create replayer initialization error
Auto Trait Implementations§
impl Freeze for ReplayerErrorFactory
impl RefUnwindSafe for ReplayerErrorFactory
impl Send for ReplayerErrorFactory
impl Sync for ReplayerErrorFactory
impl Unpin for ReplayerErrorFactory
impl UnwindSafe for ReplayerErrorFactory
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> 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 more