pub struct LifecycleStateManager { /* private fields */ }Implementations§
Source§impl LifecycleStateManager
impl LifecycleStateManager
pub fn new(initial_mode: Mode) -> Self
pub fn current_mode(&self) -> Mode
pub fn set_mode(&self, mode: Mode)
pub fn backup_state(&self) -> OperationState
pub fn set_backup_state(&self, state: OperationState)
pub fn restore_state(&self) -> OperationState
pub fn set_restore_state(&self, state: OperationState)
pub fn restore_metadata(&self) -> Option<RestoreMetadata>
pub fn set_restore_metadata(&self, metadata: Option<RestoreMetadata>)
pub fn should_block_writes(&self) -> bool
pub fn check_write_allowed(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LifecycleStateManager
impl RefUnwindSafe for LifecycleStateManager
impl Send for LifecycleStateManager
impl Sync for LifecycleStateManager
impl Unpin for LifecycleStateManager
impl UnwindSafe for LifecycleStateManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request