Enum rusqlite::backup::StepResult
source · [−]#[non_exhaustive]
pub enum StepResult {
Done,
More,
Busy,
Locked,
}
This is supported 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
sourceimpl Clone for StepResult
impl Clone for StepResult
sourcefn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StepResult
impl Debug for StepResult
sourceimpl PartialEq<StepResult> for StepResult
impl PartialEq<StepResult> for StepResult
impl Copy for StepResult
impl Eq for StepResult
impl StructuralEq for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more