#[non_exhaustive]pub struct RepairPhaseConfig {
pub repair_phase: Option<RepairPhase>,
/* private fields */
}
Expand description
Configuration of the repair phase.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.repair_phase: Option<RepairPhase>
The repair phase to perform.
Implementations§
Source§impl RepairPhaseConfig
impl RepairPhaseConfig
pub fn new() -> Self
Sourcepub fn set_repair_phase<T: Into<Option<RepairPhase>>>(self, v: T) -> Self
pub fn set_repair_phase<T: Into<Option<RepairPhase>>>(self, v: T) -> Self
Sets the value of repair_phase.
Note that all the setters affecting repair_phase
are mutually
exclusive.
Sourcepub fn retry(&self) -> Option<&Box<Retry>>
pub fn retry(&self) -> Option<&Box<Retry>>
The value of repair_phase
if it holds a Retry
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_retry<T: Into<Box<Retry>>>(self, v: T) -> Self
pub fn set_retry<T: Into<Box<Retry>>>(self, v: T) -> Self
Sets the value of repair_phase
to hold a Retry
.
Note that all the setters affecting repair_phase
are
mutually exclusive.
Sourcepub fn rollback(&self) -> Option<&Box<Rollback>>
pub fn rollback(&self) -> Option<&Box<Rollback>>
The value of repair_phase
if it holds a Rollback
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_rollback<T: Into<Box<Rollback>>>(self, v: T) -> Self
pub fn set_rollback<T: Into<Box<Rollback>>>(self, v: T) -> Self
Sets the value of repair_phase
to hold a Rollback
.
Note that all the setters affecting repair_phase
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RepairPhaseConfig
impl Clone for RepairPhaseConfig
Source§fn clone(&self) -> RepairPhaseConfig
fn clone(&self) -> RepairPhaseConfig
Returns a duplicate 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 RepairPhaseConfig
impl Debug for RepairPhaseConfig
Source§impl Default for RepairPhaseConfig
impl Default for RepairPhaseConfig
Source§fn default() -> RepairPhaseConfig
fn default() -> RepairPhaseConfig
Returns the “default value” for a type. Read more
Source§impl Message for RepairPhaseConfig
impl Message for RepairPhaseConfig
Source§impl PartialEq for RepairPhaseConfig
impl PartialEq for RepairPhaseConfig
impl StructuralPartialEq for RepairPhaseConfig
Auto Trait Implementations§
impl Freeze for RepairPhaseConfig
impl RefUnwindSafe for RepairPhaseConfig
impl Send for RepairPhaseConfig
impl Sync for RepairPhaseConfig
impl Unpin for RepairPhaseConfig
impl UnwindSafe for RepairPhaseConfig
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