#[repr(u32)]pub enum ResetPolicy {
Soft = 0,
Hard = 1,
}
Expand description
A policy that can be used with reset()
functions.
Variants§
Soft = 0
Soft reset, does not deeallocate memory (default).
Hard = 1
Hard reset, releases all memory used, if any.
Trait Implementations§
Source§impl Clone for ResetPolicy
impl Clone for ResetPolicy
Source§fn clone(&self) -> ResetPolicy
fn clone(&self) -> ResetPolicy
Returns a copy 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 ResetPolicy
impl Debug for ResetPolicy
Source§impl Hash for ResetPolicy
impl Hash for ResetPolicy
Source§impl Ord for ResetPolicy
impl Ord for ResetPolicy
Source§fn cmp(&self, other: &ResetPolicy) -> Ordering
fn cmp(&self, other: &ResetPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResetPolicy
impl PartialEq for ResetPolicy
Source§impl PartialOrd for ResetPolicy
impl PartialOrd for ResetPolicy
impl Copy for ResetPolicy
impl Eq for ResetPolicy
impl StructuralPartialEq for ResetPolicy
Auto Trait Implementations§
impl Freeze for ResetPolicy
impl RefUnwindSafe for ResetPolicy
impl Send for ResetPolicy
impl Sync for ResetPolicy
impl Unpin for ResetPolicy
impl UnwindSafe for ResetPolicy
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