pub struct FormatUpgrade {
pub from_version: u32,
pub to_version: u32,
pub original: String,
pub messages: usize,
pub rewritten: bool,
}Expand description
BP-8: what SessionStore::upgrade_in_place did.
Fields§
§from_version: u32The generation the file was at (0 = unmarked).
to_version: u32The generation it is at now.
original: StringStore-relative file holding the ORIGINAL bytes verbatim.
messages: usizeMessages in the upgraded transcript.
rewritten: boolWhether the transcript bytes actually changed (a file already in today’s shape is only STAMPED, never rewritten).
Trait Implementations§
Source§impl Clone for FormatUpgrade
impl Clone for FormatUpgrade
Source§fn clone(&self) -> FormatUpgrade
fn clone(&self) -> FormatUpgrade
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 FormatUpgrade
impl Debug for FormatUpgrade
impl Eq for FormatUpgrade
Source§impl PartialEq for FormatUpgrade
impl PartialEq for FormatUpgrade
impl StructuralPartialEq for FormatUpgrade
Auto Trait Implementations§
impl Freeze for FormatUpgrade
impl RefUnwindSafe for FormatUpgrade
impl Send for FormatUpgrade
impl Sync for FormatUpgrade
impl Unpin for FormatUpgrade
impl UnsafeUnpin for FormatUpgrade
impl UnwindSafe for FormatUpgrade
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.