Struct brb_dt_at2::bank::Bank [−][src]
Expand description
AT2 Bank
for a particular Actor
Implementations
Open a new account.
The balance field should normally be 0, but this field enables an application to force a non-zero starting balance. Though of course other nodes must agree. This could for example be used to pre-fund a “MINT” account that spends money into existence (in other accounts) over time.
Returns an account’s starting balance, prior to any transfers in or out.
Returns an account’s present balance.
This is presently a slow operation as the entire history of all transfers is iterated. i.e., it degrades O(n) with the size of the history.
Trait Implementations
Protection against Byzantines
type ValidationError = ValidationError
type ValidationError = ValidationError
A validation error specific to this data type.
Auto Trait Implementations
impl<A> RefUnwindSafe for Bank<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Bank<A> where
A: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V