pub enum MigrationLock {
Platform,
LegacyTableHash,
}Expand description
The advisory lock a migration run holds.
Variants§
Platform
LegacyTableHash
The key a legacy refinery runner derives from the history table’s name, so the two never run at once.
Implementations§
Source§impl MigrationLock
impl MigrationLock
pub fn is_platform(&self) -> bool
Trait Implementations§
Source§impl Clone for MigrationLock
impl Clone for MigrationLock
impl Copy for MigrationLock
Source§impl Debug for MigrationLock
impl Debug for MigrationLock
Source§impl Default for MigrationLock
impl Default for MigrationLock
Source§impl<'de> Deserialize<'de> for MigrationLock
impl<'de> Deserialize<'de> for MigrationLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MigrationLock
Source§impl PartialEq for MigrationLock
impl PartialEq for MigrationLock
Source§impl Serialize for MigrationLock
impl Serialize for MigrationLock
impl StructuralPartialEq for MigrationLock
Auto Trait Implementations§
impl Freeze for MigrationLock
impl RefUnwindSafe for MigrationLock
impl Send for MigrationLock
impl Sync for MigrationLock
impl Unpin for MigrationLock
impl UnsafeUnpin for MigrationLock
impl UnwindSafe for MigrationLock
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