Enum rusqlite::backup::StepResult
source · #[non_exhaustive]
pub enum StepResult {
Done,
More,
Busy,
Locked,
}
Available on crate feature
backup
only.Expand description
Possible successful results of calling
Backup::step
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Done
The backup is complete.
More
The step was successful but there are still more pages that need to be backed up.
Busy
The step failed because appropriate locks could not be acquired. This is not a fatal error - the step can be retried.
Locked
The step failed because the source connection was writing to the database. This is not a fatal error - the step can be retried.
Trait Implementations§
source§impl Clone for StepResult
impl Clone for StepResult
source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a copy 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 moresource§impl Debug for StepResult
impl Debug for StepResult
source§impl PartialEq<StepResult> for StepResult
impl PartialEq<StepResult> for StepResult
source§fn eq(&self, other: &StepResult) -> bool
fn eq(&self, other: &StepResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.