Struct State Format
pub struct StateFormat {
pub tag: [u8; 8],
pub version: u32,
}Expand description
Format and version of the saved state, see crate::state.
Fields§
§tag: [u8; 8]Eight bytes identifying the product’s state; never reused by another product.
version: u32Current product state version, starting at 1. Increase it when the meaning of saved values or extra data changes.
Trait Implementations§
§impl Clone for StateFormat
impl Clone for StateFormat
§fn clone(&self) -> StateFormat
fn clone(&self) -> StateFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StateFormat
§impl Debug for StateFormat
impl Debug for StateFormat
impl Eq for StateFormat
§impl PartialEq for StateFormat
impl PartialEq for StateFormat
impl StructuralPartialEq for StateFormat
Auto Trait Implementations§
impl Freeze for StateFormat
impl RefUnwindSafe for StateFormat
impl Send for StateFormat
impl Sync for StateFormat
impl Unpin for StateFormat
impl UnsafeUnpin for StateFormat
impl UnwindSafe for StateFormat
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more