pub enum CleanupPolicy {
ReleaseOnDrop,
ClearThenRelease,
}Expand description
Cleanup policy applied while the common wrapper still owns the region.
Variants§
ReleaseOnDrop
Release the anonymous native object without an explicit clearing pass.
ClearThenRelease
Clear the complete mapping before releasing it.
Trait Implementations§
Source§impl Clone for CleanupPolicy
impl Clone for CleanupPolicy
Source§fn clone(&self) -> CleanupPolicy
fn clone(&self) -> CleanupPolicy
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 CleanupPolicy
Source§impl Debug for CleanupPolicy
impl Debug for CleanupPolicy
impl Eq for CleanupPolicy
Source§impl PartialEq for CleanupPolicy
impl PartialEq for CleanupPolicy
impl StructuralPartialEq for CleanupPolicy
Auto Trait Implementations§
impl Freeze for CleanupPolicy
impl RefUnwindSafe for CleanupPolicy
impl Send for CleanupPolicy
impl Sync for CleanupPolicy
impl Unpin for CleanupPolicy
impl UnsafeUnpin for CleanupPolicy
impl UnwindSafe for CleanupPolicy
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