pub enum Kind {
Depletable,
Claimable,
}Expand description
How impacts change a timeline’s level.
| Resource | Kind | Impacts |
|---|---|---|
| Energy, data volume, propellant (consumable, cumulative) | Depletable | Impact::Step for lumps, Impact::Rate for charge, discharge or drift |
| Power bus share, comm channel, instrument (reusable) | Claimable | Impact::Claim |
| Mode, visibility window | not numeric | see StateTimeline |
Variants§
Depletable
Consumed and produced by permanent changes, for example energy or data volume.
Accepts every Impact. Steps and rates persist after the activity; claims model a
temporary hold such as a reserved margin.
Claimable
Borrowed for an interval and returned, for example an instrument or a transmitter.
Accepts Impact::Claim only.
Trait Implementations§
impl Copy for Kind
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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 Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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