pub struct AttemptBudgetRecord { /* private fields */ }Expand description
Immutable finite allowances; consumption never refunds or replenishes these limits.
Implementations§
Source§impl AttemptBudgetRecord
impl AttemptBudgetRecord
Sourcepub fn new(
mutations: u32,
observations: u32,
) -> Result<Self, AttemptJournalRecordError>
pub fn new( mutations: u32, observations: u32, ) -> Result<Self, AttemptJournalRecordError>
Admit finite independent mutation and observation allowances, including zero.
§Errors
Rejects overflow or a total greater than MAX_OPERATION_ATTEMPTS.
Sourcepub const fn observations(&self) -> u32
pub const fn observations(&self) -> u32
Read the immutable reconciliation-observation ceiling.
Trait Implementations§
Source§impl Clone for AttemptBudgetRecord
impl Clone for AttemptBudgetRecord
Source§impl Debug for AttemptBudgetRecord
impl Debug for AttemptBudgetRecord
Source§impl<'de> Deserialize<'de> for AttemptBudgetRecord
impl<'de> Deserialize<'de> for AttemptBudgetRecord
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 AttemptBudgetRecord
Source§impl PartialEq for AttemptBudgetRecord
impl PartialEq for AttemptBudgetRecord
Source§impl Serialize for AttemptBudgetRecord
impl Serialize for AttemptBudgetRecord
impl StructuralPartialEq for AttemptBudgetRecord
Auto Trait Implementations§
impl Freeze for AttemptBudgetRecord
impl RefUnwindSafe for AttemptBudgetRecord
impl Send for AttemptBudgetRecord
impl Sync for AttemptBudgetRecord
impl Unpin for AttemptBudgetRecord
impl UnsafeUnpin for AttemptBudgetRecord
impl UnwindSafe for AttemptBudgetRecord
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