pub enum RiskLevel {
Low,
Medium,
High,
Critical,
}
Expand description
Risk levels for memory allocations
Variants§
Low
Low risk - small, predictable allocations
Medium
Medium risk - moderate size or some growth
High
High risk - large allocations or significant growth
Critical
Critical risk - potential memory leaks or excessive growth
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RiskLevel
impl<'de> Deserialize<'de> for RiskLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RiskLevel
impl RefUnwindSafe for RiskLevel
impl Send for RiskLevel
impl Sync for RiskLevel
impl Unpin for RiskLevel
impl UnwindSafe for RiskLevel
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