Enum qapi_qmp::MigrationStatus
source · [−]pub enum MigrationStatus {
Show 14 variants
none,
setup,
cancelling,
cancelled,
active,
postcopy_active,
postcopy_paused,
postcopy_recover,
completed,
failed,
colo,
pre_switchover,
device,
wait_unplug,
}Variants
none
setup
cancelling
cancelled
active
postcopy_active
postcopy_paused
postcopy_recover
completed
failed
colo
pre_switchover
device
wait_unplug
Trait Implementations
sourceimpl Clone for MigrationStatus
impl Clone for MigrationStatus
sourcefn clone(&self) -> MigrationStatus
fn clone(&self) -> MigrationStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MigrationStatus
impl Debug for MigrationStatus
sourceimpl<'de> Deserialize<'de> for MigrationStatus
impl<'de> Deserialize<'de> for MigrationStatus
sourcefn 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
sourceimpl Enum for MigrationStatus
impl Enum for MigrationStatus
fn discriminant(&self) -> usize
const COUNT: usize = 14usize
const VARIANTS: &'static [Self] = &[ MigrationStatus::none, MigrationStatus::setup, MigrationStatus::cancelling, MigrationStatus::cancelled, MigrationStatus::active, MigrationStatus::postcopy_active, MigrationStatus::postcopy_paused, MigrationStatus::postcopy_recover, MigrationStatus::completed, MigrationStatus::failed, MigrationStatus::colo, MigrationStatus::pre_switchover, MigrationStatus::device, MigrationStatus::wait_unplug, ]
const NAMES: &'static [&'static str] = &[ "none", "setup", "cancelling", "cancelled", "active", "postcopy-active", "postcopy-paused", "postcopy-recover", "completed", "failed", "colo", "pre-switchover", "device", "wait-unplug", ]
fn name(&self) -> &'static str
fn from_name(s: &str) -> Option<Self>
sourceimpl FromStr for MigrationStatus
impl FromStr for MigrationStatus
sourceimpl Hash for MigrationStatus
impl Hash for MigrationStatus
sourceimpl Ord for MigrationStatus
impl Ord for MigrationStatus
sourceimpl PartialEq<MigrationStatus> for MigrationStatus
impl PartialEq<MigrationStatus> for MigrationStatus
sourceimpl PartialOrd<MigrationStatus> for MigrationStatus
impl PartialOrd<MigrationStatus> for MigrationStatus
sourcefn partial_cmp(&self, other: &MigrationStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationStatus) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for MigrationStatus
impl Serialize for MigrationStatus
impl Copy for MigrationStatus
impl Eq for MigrationStatus
impl StructuralEq for MigrationStatus
impl StructuralPartialEq for MigrationStatus
Auto Trait Implementations
impl RefUnwindSafe for MigrationStatus
impl Send for MigrationStatus
impl Sync for MigrationStatus
impl Unpin for MigrationStatus
impl UnwindSafe for MigrationStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more