pub struct Migrator {
pub migrate: fn(&dyn DynFilesystem, &dyn DynFilesystem) -> Result<(), Error>,
pub version: u32,
}Fields§
§migrate: fn(&dyn DynFilesystem, &dyn DynFilesystem) -> Result<(), Error>The function performing the migration
First argument is the Internal Filesystem, second argument is the External
version: u32The version of the storage for which the migration needs to be run
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Migrator
impl RefUnwindSafe for Migrator
impl Send for Migrator
impl Sync for Migrator
impl Unpin for Migrator
impl UnsafeUnpin for Migrator
impl UnwindSafe for Migrator
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