pub struct QuotaScope(/* private fields */);Expand description
The key a quota is counted under. In M0 that is one signer within one
namespace (planner default Q14). Namespace totals use separate qs/qt
rows and leave this per-signer scope unchanged.
Implementations§
Source§impl QuotaScope
impl QuotaScope
Sourcepub fn for_signer(ns: &NamespaceKey, signer: &[u8; 32]) -> Self
pub fn for_signer(ns: &NamespaceKey, signer: &[u8; 32]) -> Self
The scope for signer in ns: "<namespace>\n<signer hex>".
Trait Implementations§
Source§impl Clone for QuotaScope
impl Clone for QuotaScope
Source§impl Debug for QuotaScope
impl Debug for QuotaScope
impl Eq for QuotaScope
Source§impl Hash for QuotaScope
impl Hash for QuotaScope
Source§impl PartialEq for QuotaScope
impl PartialEq for QuotaScope
impl StructuralPartialEq for QuotaScope
Auto Trait Implementations§
impl Freeze for QuotaScope
impl RefUnwindSafe for QuotaScope
impl Send for QuotaScope
impl Sync for QuotaScope
impl Unpin for QuotaScope
impl UnsafeUnpin for QuotaScope
impl UnwindSafe for QuotaScope
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