pub struct NSMigrationManager { /* private fields */ }Expand description
Wraps NSMigrationManager.
Implementations§
Source§impl NSMigrationManager
impl NSMigrationManager
Sourcepub fn new(
source_model: &NSManagedObjectModel,
destination_model: &NSManagedObjectModel,
) -> Result<Self, CoreDataError>
pub fn new( source_model: &NSManagedObjectModel, destination_model: &NSManagedObjectModel, ) -> Result<Self, CoreDataError>
Wraps NSMigrationManager.init(...).
Sourcepub fn source_model(&self) -> Result<NSManagedObjectModel, CoreDataError>
pub fn source_model(&self) -> Result<NSManagedObjectModel, CoreDataError>
Wraps NSMigrationManager.source_model(...).
Sourcepub fn destination_model(&self) -> Result<NSManagedObjectModel, CoreDataError>
pub fn destination_model(&self) -> Result<NSManagedObjectModel, CoreDataError>
Wraps NSMigrationManager.destination_model(...).
Sourcepub fn source_context(&self) -> Result<NSManagedObjectContext, CoreDataError>
pub fn source_context(&self) -> Result<NSManagedObjectContext, CoreDataError>
Wraps NSMigrationManager.source_context(...).
Sourcepub fn destination_context(
&self,
) -> Result<NSManagedObjectContext, CoreDataError>
pub fn destination_context( &self, ) -> Result<NSManagedObjectContext, CoreDataError>
Wraps NSMigrationManager.destination_context(...).
Sourcepub fn uses_store_specific_migration_manager(&self) -> bool
pub fn uses_store_specific_migration_manager(&self) -> bool
Wraps NSMigrationManager.uses_store_specific_migration_manager(...).
Sourcepub fn set_uses_store_specific_migration_manager(
&self,
uses_store_specific_migration_manager: bool,
)
pub fn set_uses_store_specific_migration_manager( &self, uses_store_specific_migration_manager: bool, )
Mirrors NSMigrationManager.uses_store_specific_migration_manager.
Sourcepub fn migration_progress(&self) -> f32
pub fn migration_progress(&self) -> f32
Wraps NSMigrationManager.migration_progress(...).
Sourcepub fn migrate_store<S, D>(
&self,
source_url: S,
source_store_type: &str,
source_options: Option<&PersistentStoreOptions>,
mapping_model: Option<&NSMappingModel>,
destination_url: D,
destination_store_type: &str,
destination_options: Option<&PersistentStoreOptions>,
) -> Result<(), CoreDataError>
pub fn migrate_store<S, D>( &self, source_url: S, source_store_type: &str, source_options: Option<&PersistentStoreOptions>, mapping_model: Option<&NSMappingModel>, destination_url: D, destination_store_type: &str, destination_options: Option<&PersistentStoreOptions>, ) -> Result<(), CoreDataError>
Wraps NSMigrationManager.migrate_store(...).
Trait Implementations§
Source§impl Clone for NSMigrationManager
impl Clone for NSMigrationManager
Source§fn clone(&self) -> NSMigrationManager
fn clone(&self) -> NSMigrationManager
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 NSMigrationManager
impl Debug for NSMigrationManager
impl Send for NSMigrationManager
Auto Trait Implementations§
impl Freeze for NSMigrationManager
impl RefUnwindSafe for NSMigrationManager
impl !Sync for NSMigrationManager
impl Unpin for NSMigrationManager
impl UnsafeUnpin for NSMigrationManager
impl UnwindSafe for NSMigrationManager
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