pub struct QueryMemoryLedger { /* private fields */ }Implementations§
Source§impl QueryMemoryLedger
impl QueryMemoryLedger
pub fn new(budget_bytes: NonZeroUsize) -> Self
Sourcepub fn new_with_budget_option(
budget_bytes: NonZeroUsize,
budget_option: &'static str,
) -> Self
pub fn new_with_budget_option( budget_bytes: NonZeroUsize, budget_option: &'static str, ) -> Self
Names the configuration option or runtime grant supplying this limit.
pub fn account( &self, class: QueryMemoryClass, owner: impl Into<Arc<str>>, budget_bytes: NonZeroUsize, ) -> QueryMemoryAccount
Sourcepub fn account_with_budget_option(
&self,
class: QueryMemoryClass,
owner: impl Into<Arc<str>>,
budget_bytes: NonZeroUsize,
budget_option: &'static str,
) -> QueryMemoryAccount
pub fn account_with_budget_option( &self, class: QueryMemoryClass, owner: impl Into<Arc<str>>, budget_bytes: NonZeroUsize, budget_option: &'static str, ) -> QueryMemoryAccount
Creates an account with an explicit origin for its effective byte limit.
pub fn snapshot(&self) -> QueryMemoryLedgerSnapshot
Trait Implementations§
Source§impl Clone for QueryMemoryLedger
impl Clone for QueryMemoryLedger
Auto Trait Implementations§
impl Freeze for QueryMemoryLedger
impl RefUnwindSafe for QueryMemoryLedger
impl Send for QueryMemoryLedger
impl Sync for QueryMemoryLedger
impl Unpin for QueryMemoryLedger
impl UnsafeUnpin for QueryMemoryLedger
impl UnwindSafe for QueryMemoryLedger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more