pub struct KvSlotAllocation {
pub cache_id: String,
pub blocks_before: usize,
pub blocks_after: usize,
pub new_blocks: usize,
}Expand description
Per-cache outcome from a KV slot reservation attempt.
Fields§
§cache_id: String§blocks_before: usize§blocks_after: usize§new_blocks: usizeTrait Implementations§
Source§impl Clone for KvSlotAllocation
impl Clone for KvSlotAllocation
Source§fn clone(&self) -> KvSlotAllocation
fn clone(&self) -> KvSlotAllocation
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 moreSource§impl Debug for KvSlotAllocation
impl Debug for KvSlotAllocation
Source§impl<'de> Deserialize<'de> for KvSlotAllocation
impl<'de> Deserialize<'de> for KvSlotAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KvSlotAllocation
Source§impl PartialEq for KvSlotAllocation
impl PartialEq for KvSlotAllocation
Source§impl Serialize for KvSlotAllocation
impl Serialize for KvSlotAllocation
impl StructuralPartialEq for KvSlotAllocation
Auto Trait Implementations§
impl Freeze for KvSlotAllocation
impl RefUnwindSafe for KvSlotAllocation
impl Send for KvSlotAllocation
impl Sync for KvSlotAllocation
impl Unpin for KvSlotAllocation
impl UnsafeUnpin for KvSlotAllocation
impl UnwindSafe for KvSlotAllocation
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