pub enum TempResourceState {
Owned,
Persisted,
Kept,
Cleaned,
CleanupRequired,
Indeterminate,
}Expand description
Observable lifecycle and recovery state of a temporary resource handle.
§Examples
use qubit_fs::temp::TempResourceState;
assert!(matches!(TempResourceState::Owned, TempResourceState::Owned));Variants§
Owned
The handle owns cleanup responsibility for an unpublished source.
Persisted
The source was successfully published to its final target.
Kept
Cleanup responsibility was explicitly released to the caller.
Cleaned
The temporary source was explicitly cleaned.
CleanupRequired
Only residual cleanup is permitted; this does not imply publication.
Indeterminate
The provider cannot determine the final source or target state.
Trait Implementations§
Source§impl Clone for TempResourceState
impl Clone for TempResourceState
Source§fn clone(&self) -> TempResourceState
fn clone(&self) -> TempResourceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TempResourceState
Source§impl Debug for TempResourceState
impl Debug for TempResourceState
impl Eq for TempResourceState
Source§impl PartialEq for TempResourceState
impl PartialEq for TempResourceState
impl StructuralPartialEq for TempResourceState
Auto Trait Implementations§
impl Freeze for TempResourceState
impl RefUnwindSafe for TempResourceState
impl Send for TempResourceState
impl Sync for TempResourceState
impl Unpin for TempResourceState
impl UnsafeUnpin for TempResourceState
impl UnwindSafe for TempResourceState
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