pub struct StorageBudget(/* private fields */);Implementations§
Source§impl StorageBudget
impl StorageBudget
pub fn new( max_sessions: usize, byte_ceiling: usize, ) -> Result<StorageBudget, AdmissionError>
pub fn reserve( &self, limits: StorageLimits, metadata_bytes: usize, ) -> Result<StorageReservation, AdmissionError>
Sourcepub fn reserve_auxiliary_bytes(
&self,
limits: StorageLimits,
metadata_bytes: usize,
) -> Result<StorageReservation, AdmissionError>
pub fn reserve_auxiliary_bytes( &self, limits: StorageLimits, metadata_bytes: usize, ) -> Result<StorageReservation, AdmissionError>
Charge auxiliary stage PCM + metadata bytes (such as MultiInputManager’s mixed out_pool)
against byte_ceiling (max_total_pcm_memory) without consuming one of the input-stream
sessions (max_active_streams) slots.
pub fn resident_sessions(&self) -> usize
pub fn reserved_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for StorageBudget
impl Clone for StorageBudget
Source§fn clone(&self) -> StorageBudget
fn clone(&self) -> StorageBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StorageBudget
impl RefUnwindSafe for StorageBudget
impl Send for StorageBudget
impl Sync for StorageBudget
impl Unpin for StorageBudget
impl UnsafeUnpin for StorageBudget
impl UnwindSafe for StorageBudget
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