pub struct RejectedTempResource { /* 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::temp::RejectedTempResource;
fn cannot_publish(mut recovery: RejectedTempResource) {
recovery.keep();
}§Examples
use qubit_fs::error::RecoveryCleanupState;
use qubit_fs::temp::RejectedTempResource;
assert!(std::any::type_name::<RejectedTempResource>().contains("RejectedTempResource"));
assert_eq!(RecoveryCleanupState::Pending, RecoveryCleanupState::Pending);Implementations§
Source§impl RejectedTempResource
impl RejectedTempResource
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 cleanup(&mut self) -> FsResult<()>
pub fn cleanup(&mut self) -> FsResult<()>
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 RejectedTempResource
impl !Sync for RejectedTempResource
impl !UnwindSafe for RejectedTempResource
impl Freeze for RejectedTempResource
impl Send for RejectedTempResource
impl Unpin for RejectedTempResource
impl UnsafeUnpin for RejectedTempResource
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