pub enum WriteFailureState {
RetryableNotPublished,
NotPublished,
Published,
Indeterminate,
}Expand description
Provider-confirmed recovery state when a write commit fails.
§Examples
use qubit_fs::write::WriteFailureState;
let state = WriteFailureState::RetryableNotPublished;
match state {
WriteFailureState::RetryableNotPublished => println!("retry the commit"),
WriteFailureState::NotPublished => println!("clean up the unpublished target"),
WriteFailureState::Published => println!("preserve the published target; clean up only the session or staging resources"),
WriteFailureState::Indeterminate => println!("resolve publication status"),
}Published means the destination must be preserved; do not retry
publication as though it had failed. Cleanup applies only to resources still
owned by the writer, such as a session or staging data. Successful cleanup
does not roll back the published target.
Variants§
RetryableNotPublished
Publication can be retried using the retained session.
NotPublished
The target was not published and only cleanup remains possible.
Published
The target was published and only cleanup remains possible.
Indeterminate
The provider cannot determine whether publication occurred.
Trait Implementations§
Source§impl Clone for WriteFailureState
impl Clone for WriteFailureState
impl Copy for WriteFailureState
Source§impl Debug for WriteFailureState
impl Debug for WriteFailureState
impl Eq for WriteFailureState
Source§impl PartialEq for WriteFailureState
impl PartialEq for WriteFailureState
impl StructuralPartialEq for WriteFailureState
Auto Trait Implementations§
impl Forget for WriteFailureState
impl Freeze for WriteFailureState
impl Move for WriteFailureState
impl RefUnwindSafe for WriteFailureState
impl Send for WriteFailureState
impl Sync for WriteFailureState
impl Unpin for WriteFailureState
impl UnsafeUnpin for WriteFailureState
impl UnwindSafe for WriteFailureState
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