pub struct Governance { /* private fields */ }Implementations§
Source§impl Governance
impl Governance
pub fn new(limits: GovernanceLimits) -> Self
pub fn admit(&self, key: &GovernanceKey) -> Admission
pub fn record_usage(&self, key: &GovernanceKey, tokens: u64)
pub fn clear(&self, key: &GovernanceKey)
Auto Trait Implementations§
impl !Freeze for Governance
impl RefUnwindSafe for Governance
impl Send for Governance
impl Sync for Governance
impl Unpin for Governance
impl UnsafeUnpin for Governance
impl UnwindSafe for Governance
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