pub enum BlockState {
Live,
Retired,
Quarantined,
Freed,
}Expand description
State of an outstanding DeviceBlock from the runtime’s
perspective. Adaptors flip blocks between these states; bug-detection
resources reject operations on blocks in an unexpected state.
Variants§
Live
Returned from allocate; safe to read/write on alloc_stream
or after a synchronization to another stream.
Retired
Returned from deallocate but still pending kernel completion
on its owning stream. Reuse must wait for stream sync.
Quarantined
Held by DebugGuardResource for delayed reuse / canary
validation. Not reissued until the quarantine window passes.
Freed
Memory has been physically freed. Any further use is a bug.
Trait Implementations§
Source§impl Clone for BlockState
impl Clone for BlockState
Source§fn clone(&self) -> BlockState
fn clone(&self) -> BlockState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockState
impl Debug for BlockState
Source§impl PartialEq for BlockState
impl PartialEq for BlockState
impl Copy for BlockState
impl Eq for BlockState
impl StructuralPartialEq for BlockState
Auto Trait Implementations§
impl Freeze for BlockState
impl RefUnwindSafe for BlockState
impl Send for BlockState
impl Sync for BlockState
impl Unpin for BlockState
impl UnsafeUnpin for BlockState
impl UnwindSafe for BlockState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more