pub enum MigrationAction {
CopyPrefix,
ZeroInit,
UpdateHeader,
Realloc,
}Expand description
Migration action type.
Variants§
CopyPrefix
Copy bytes from old account at (offset, size) to new account.
ZeroInit
Zero-initialize new region at (offset, size).
UpdateHeader
Update the account header (version + layout_id).
Realloc
Realloc the account to new size (grows in place if possible).
Trait Implementations§
Source§impl Clone for MigrationAction
impl Clone for MigrationAction
Source§fn clone(&self) -> MigrationAction
fn clone(&self) -> MigrationAction
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 MigrationAction
impl Debug for MigrationAction
Source§impl Display for MigrationAction
impl Display for MigrationAction
Source§impl PartialEq for MigrationAction
impl PartialEq for MigrationAction
Source§fn eq(&self, other: &MigrationAction) -> bool
fn eq(&self, other: &MigrationAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MigrationAction
impl Eq for MigrationAction
impl StructuralPartialEq for MigrationAction
Auto Trait Implementations§
impl Freeze for MigrationAction
impl RefUnwindSafe for MigrationAction
impl Send for MigrationAction
impl Sync for MigrationAction
impl Unpin for MigrationAction
impl UnsafeUnpin for MigrationAction
impl UnwindSafe for MigrationAction
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