pub struct ClusterSnapshot {
pub last_applied: Option<LogId<u64>>,
pub last_membership: StoredMembership<u64, BasicNode>,
pub state_data: Vec<u8>,
}Expand description
State machine snapshot.
Fields§
§last_applied: Option<LogId<u64>>§last_membership: StoredMembership<u64, BasicNode>§state_data: Vec<u8>Serialized cluster state.
Trait Implementations§
Source§impl Clone for ClusterSnapshot
impl Clone for ClusterSnapshot
Source§fn clone(&self) -> ClusterSnapshot
fn clone(&self) -> ClusterSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 ClusterSnapshot
impl Debug for ClusterSnapshot
Source§impl Default for ClusterSnapshot
impl Default for ClusterSnapshot
Source§fn default() -> ClusterSnapshot
fn default() -> ClusterSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterSnapshot
impl<'de> Deserialize<'de> for ClusterSnapshot
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 ClusterSnapshot
impl RefUnwindSafe for ClusterSnapshot
impl Send for ClusterSnapshot
impl Sync for ClusterSnapshot
impl Unpin for ClusterSnapshot
impl UnsafeUnpin for ClusterSnapshot
impl UnwindSafe for ClusterSnapshot
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