pub struct TenantLimits {
pub max_total_bytes: u64,
/* private fields */
}Fields§
§max_total_bytes: u64Implementations§
Source§impl TenantLimits
impl TenantLimits
pub fn new(max_total_bytes: u64) -> Self
pub fn observed_bytes(&self) -> u64
Sourcepub fn peak_bytes(&self) -> u64
pub fn peak_bytes(&self) -> u64
High-water mark of admitted engine memory plus charged host bytes, not RSS.
pub fn host_attached_bytes(&self) -> u64
pub fn host_attached_counter(&self) -> Arc<AtomicU64> ⓘ
Sourcepub fn charge_host_bytes(&self, n: u64) -> Result<(), MemoryCapExceeded>
pub fn charge_host_bytes(&self, n: u64) -> Result<(), MemoryCapExceeded>
Charges happen on the store thread, but cancelled Git workers can refund their reservations concurrently during execution cleanup.
pub fn release_host_bytes(&self, n: u64)
Trait Implementations§
Source§impl ResourceLimiter for TenantLimits
impl ResourceLimiter for TenantLimits
fn memory_growing( &mut self, current: usize, desired: usize, _maximum: Option<usize>, ) -> Result<bool>
fn table_growing( &mut self, _current: usize, _desired: usize, _maximum: Option<usize>, ) -> Result<bool>
fn memory_grow_failed(&mut self, error: Error) -> Result<(), Error>
fn table_grow_failed(&mut self, error: Error) -> Result<(), Error>
fn instances(&self) -> usize
fn tables(&self) -> usize
fn memories(&self) -> usize
Auto Trait Implementations§
impl !Freeze for TenantLimits
impl RefUnwindSafe for TenantLimits
impl Send for TenantLimits
impl Sync for TenantLimits
impl Unpin for TenantLimits
impl UnsafeUnpin for TenantLimits
impl UnwindSafe for TenantLimits
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