pub enum ActiveMode {
Normal,
Always,
Never,
}
Expand description
This is useful for testing, as it means tests don’t need to deal with the activation process. Only tests that specifically test the behaviour during activation cannot use this.
Variants§
Normal
Indicating that the deployment is normal active.
Always
Indicating that the deployment is always active. This is useful for testing, as it means tests don’t need to deal with the activation
Never
Indicating that the deployment is never active. This is useful for testing.
Trait Implementations§
Source§impl Clone for ActiveMode
impl Clone for ActiveMode
Source§fn clone(&self) -> ActiveMode
fn clone(&self) -> ActiveMode
Returns a copy of the value. Read more
1.0.0 · 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 ActiveMode
impl Debug for ActiveMode
Source§impl PartialEq for ActiveMode
impl PartialEq for ActiveMode
impl Copy for ActiveMode
impl Eq for ActiveMode
impl StructuralPartialEq for ActiveMode
Auto Trait Implementations§
impl Freeze for ActiveMode
impl RefUnwindSafe for ActiveMode
impl Send for ActiveMode
impl Sync for ActiveMode
impl Unpin for ActiveMode
impl UnwindSafe for ActiveMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more