pub struct RejectedWriter { /* private fields */ }Expand description
Isolated cleanup ownership after a provider returned an invalid identity.
This handle cannot write or publish. Cleanup acts only on resources owned by its session, never on a diagnostic path. Drop performs no explicit cleanup or cancellation hook; retain this handle until cleanup is confirmed.
ⓘ
use qubit_fs::write::RejectedWriter;
fn cannot_publish(mut recovery: RejectedWriter) {
recovery.commit();
}§Examples
use qubit_fs::error::RecoveryCleanupState;
use qubit_fs::write::RejectedWriter;
assert!(std::any::type_name::<RejectedWriter>().contains("RejectedWriter"));
assert_eq!(RecoveryCleanupState::Pending, RecoveryCleanupState::Pending);Implementations§
Source§impl RejectedWriter
impl RejectedWriter
Sourcepub const fn cleanup_state(&self) -> RecoveryCleanupState
pub const fn cleanup_state(&self) -> RecoveryCleanupState
Returns cleanup progress; errors and cancellation do not release ownership.
Sourcepub fn abort(&mut self) -> FsResult<WriteAbortOutcome>
pub fn abort(&mut self) -> FsResult<WriteAbortOutcome>
Explicitly cleans resources actually owned by this isolated session.
A failed attempt retains the session for explicit retry or reconciliation. This synchronous method may block in provider I/O.
§Errors
Returns InvalidState after confirmed cleanup, or the contextual provider error without replacing the original opening failure.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RejectedWriter
impl !Sync for RejectedWriter
impl !UnwindSafe for RejectedWriter
impl Freeze for RejectedWriter
impl Send for RejectedWriter
impl Unpin for RejectedWriter
impl UnsafeUnpin for RejectedWriter
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