pub struct PlanBudgetRecord { /* private fields */ }Expand description
Immutable declared aggregate attempt ceilings; this is not cycle accounting.
Implementations§
Source§impl PlanBudgetRecord
impl PlanBudgetRecord
Sourcepub fn new(
mutations: u32,
observations: u32,
) -> Result<Self, OperationPlanError>
pub fn new( mutations: u32, observations: u32, ) -> Result<Self, OperationPlanError>
Admit original finite aggregate ceilings, including zero, using checked arithmetic.
§Errors
Rejects overflow or combined allowance above MAX_PLAN_ATTEMPTS.
Sourcepub const fn observations(&self) -> u32
pub const fn observations(&self) -> u32
Read original declared aggregate observation ceiling.
Trait Implementations§
Source§impl Clone for PlanBudgetRecord
impl Clone for PlanBudgetRecord
Source§impl Debug for PlanBudgetRecord
impl Debug for PlanBudgetRecord
Source§impl<'de> Deserialize<'de> for PlanBudgetRecord
impl<'de> Deserialize<'de> for PlanBudgetRecord
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 PlanBudgetRecord
Source§impl PartialEq for PlanBudgetRecord
impl PartialEq for PlanBudgetRecord
Source§impl Serialize for PlanBudgetRecord
impl Serialize for PlanBudgetRecord
impl StructuralPartialEq for PlanBudgetRecord
Auto Trait Implementations§
impl Freeze for PlanBudgetRecord
impl RefUnwindSafe for PlanBudgetRecord
impl Send for PlanBudgetRecord
impl Sync for PlanBudgetRecord
impl Unpin for PlanBudgetRecord
impl UnsafeUnpin for PlanBudgetRecord
impl UnwindSafe for PlanBudgetRecord
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