pub enum Remaining {
Unlimited,
Limited(u64),
}Expand description
Effective remaining capacity for a resource.
Variants§
Unlimited
No node in the lineage limits the resource.
Limited(u64)
The minimum remaining capacity across limited lineage nodes.
Trait Implementations§
impl Copy for Remaining
Source§impl<'de> Deserialize<'de> for Remaining
impl<'de> Deserialize<'de> for Remaining
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 Remaining
impl StructuralPartialEq for Remaining
Auto Trait Implementations§
impl Freeze for Remaining
impl RefUnwindSafe for Remaining
impl Send for Remaining
impl Sync for Remaining
impl Unpin for Remaining
impl UnsafeUnpin for Remaining
impl UnwindSafe for Remaining
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