pub struct Migration {
pub to: u32,
pub what: &'static str,
pub run: fn(&Store) -> Result<()>,
}Expand description
One step from a format to the next.
Fields§
§to: u32The format it brings a brain to, from the one before.
what: &'static strWhat it changes, as kb update reports it.
run: fn(&Store) -> Result<()>Changes the brain’s files. It runs under the brain’s write lock, once: the format is written after it.
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnsafeUnpin for Migration
impl UnwindSafe for Migration
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