pub struct StateBundle {
pub app_state: Option<AppStateData>,
pub subnet_state: Option<SubnetStateData>,
pub app_directory: Option<DirectoryView>,
pub subnet_directory: Option<DirectoryView>,
}Expand description
StateBundle Snapshot of mutable state and directory sections that can be propagated to peers
Fields§
§app_state: Option<AppStateData>§subnet_state: Option<SubnetStateData>§app_directory: Option<DirectoryView>§subnet_directory: Option<DirectoryView>Implementations§
Source§impl StateBundle
impl StateBundle
pub fn new() -> Self
pub fn with_app_state(self) -> Self
pub fn with_subnet_state(self) -> Self
pub fn with_app_directory(self) -> Self
pub fn with_subnet_directory(self) -> Self
Trait Implementations§
Source§impl CandidType for StateBundle
impl CandidType for StateBundle
Source§impl Clone for StateBundle
impl Clone for StateBundle
Source§fn clone(&self) -> StateBundle
fn clone(&self) -> StateBundle
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 StateBundle
impl Debug for StateBundle
Source§impl Default for StateBundle
impl Default for StateBundle
Source§fn default() -> StateBundle
fn default() -> StateBundle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateBundle
impl<'de> Deserialize<'de> for StateBundle
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 StateBundle
impl RefUnwindSafe for StateBundle
impl Send for StateBundle
impl Sync for StateBundle
impl Unpin for StateBundle
impl UnwindSafe for StateBundle
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