pub enum Bound {
BelowMin(Level),
AboveMax(Level),
BelowTarget(Level),
}Expand description
The bound a level broke, with the bound’s value.
Variants§
BelowMin(Level)
The level fell below the lower bound (reserve, or no units left to claim).
AboveMax(Level)
The level rose above the upper bound (capacity).
BelowTarget(Level)
The level at a Target tick is below the target’s minimum, for
example the battery reserve required at the end of a sol.
Implementations§
Trait Implementations§
impl Copy for Bound
Source§impl<'de> Deserialize<'de> for Bound
impl<'de> Deserialize<'de> for Bound
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
impl Eq for Bound
impl StructuralPartialEq for Bound
Auto Trait Implementations§
impl Forget for Bound
impl Freeze for Bound
impl Move for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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