pub struct NodeSliceAllocatorSnapshot {
pub cluster_cidr: String,
pub slice_prefix: u8,
pub assigned: Vec<(String, String)>,
}Expand description
Persistent snapshot of a NodeSliceAllocator for raft/disk persistence.
Fields§
§cluster_cidr: String§slice_prefix: u8§assigned: Vec<(String, String)>Trait Implementations§
Source§impl Clone for NodeSliceAllocatorSnapshot
impl Clone for NodeSliceAllocatorSnapshot
Source§fn clone(&self) -> NodeSliceAllocatorSnapshot
fn clone(&self) -> NodeSliceAllocatorSnapshot
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 NodeSliceAllocatorSnapshot
impl Debug for NodeSliceAllocatorSnapshot
Source§impl<'de> Deserialize<'de> for NodeSliceAllocatorSnapshot
impl<'de> Deserialize<'de> for NodeSliceAllocatorSnapshot
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
Auto Trait Implementations§
impl Freeze for NodeSliceAllocatorSnapshot
impl RefUnwindSafe for NodeSliceAllocatorSnapshot
impl Send for NodeSliceAllocatorSnapshot
impl Sync for NodeSliceAllocatorSnapshot
impl Unpin for NodeSliceAllocatorSnapshot
impl UnsafeUnpin for NodeSliceAllocatorSnapshot
impl UnwindSafe for NodeSliceAllocatorSnapshot
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