pub enum SessionKvLimitKind {
KeyUnits {
units: u64,
limit: u64,
},
ValueBytes {
bytes: u64,
limit: u64,
},
PerSessionBytes {
requested: u64,
limit: u64,
},
AllSessionsBytes {
requested: u64,
limit: u64,
},
EntryCount {
limit: u64,
},
}Expand description
Which bound a rejected operation ran into. Carries the numbers, never the value — an error message about a quota must not leak session contents.
Variants§
KeyUnits
ValueBytes
PerSessionBytes
This session’s own retained bytes.
AllSessionsBytes
The server-wide budget summed across every live session. Distinct from
Self::PerSessionBytes because it wants the opposite response: the
bytes in the way belong to other sessions, so shrinking this one’s data
need not help.
EntryCount
Trait Implementations§
Source§impl Clone for SessionKvLimitKind
impl Clone for SessionKvLimitKind
impl Copy for SessionKvLimitKind
Source§impl Debug for SessionKvLimitKind
impl Debug for SessionKvLimitKind
Source§impl Display for SessionKvLimitKind
impl Display for SessionKvLimitKind
impl Eq for SessionKvLimitKind
Source§impl PartialEq for SessionKvLimitKind
impl PartialEq for SessionKvLimitKind
impl StructuralPartialEq for SessionKvLimitKind
Auto Trait Implementations§
impl Freeze for SessionKvLimitKind
impl RefUnwindSafe for SessionKvLimitKind
impl Send for SessionKvLimitKind
impl Sync for SessionKvLimitKind
impl Unpin for SessionKvLimitKind
impl UnsafeUnpin for SessionKvLimitKind
impl UnwindSafe for SessionKvLimitKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.