pub struct ByteBudget(/* private fields */);Expand description
Fail-closed byte budget used by pack write/read working-set caps.
One shared budget type so callers do not invent per-path helpers. The limit is inclusive: a value equal to the budget is admitted.
Implementations§
Trait Implementations§
Source§impl Clone for ByteBudget
impl Clone for ByteBudget
Source§fn clone(&self) -> ByteBudget
fn clone(&self) -> ByteBudget
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 moreimpl Copy for ByteBudget
Source§impl Debug for ByteBudget
impl Debug for ByteBudget
Source§impl Display for ByteBudget
impl Display for ByteBudget
impl Eq for ByteBudget
Source§impl From<u64> for ByteBudget
impl From<u64> for ByteBudget
Source§impl Hash for ByteBudget
impl Hash for ByteBudget
Source§impl Ord for ByteBudget
impl Ord for ByteBudget
Source§fn cmp(&self, other: &ByteBudget) -> Ordering
fn cmp(&self, other: &ByteBudget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ByteBudget
impl PartialEq for ByteBudget
Source§impl PartialOrd for ByteBudget
impl PartialOrd for ByteBudget
impl StructuralPartialEq for ByteBudget
Auto Trait Implementations§
impl Freeze for ByteBudget
impl RefUnwindSafe for ByteBudget
impl Send for ByteBudget
impl Sync for ByteBudget
impl Unpin for ByteBudget
impl UnsafeUnpin for ByteBudget
impl UnwindSafe for ByteBudget
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