pub struct PauseReason {
pub paused_at: TimestampNanos,
pub message: String,
}Expand description
维护原因对象
Fields§
§paused_at: TimestampNanos进入维护状态的时间
message: String维护原因
Implementations§
Trait Implementations§
Source§impl CandidType for PauseReason
impl CandidType for PauseReason
Source§impl Clone for PauseReason
impl Clone for PauseReason
Source§fn clone(&self) -> PauseReason
fn clone(&self) -> PauseReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PauseReason
impl Debug for PauseReason
Source§impl<'de> Deserialize<'de> for PauseReason
impl<'de> Deserialize<'de> for PauseReason
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
Source§impl Display for PauseReason
impl Display for PauseReason
Source§impl Error for PauseReason
impl Error for PauseReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Pausable<PauseReason> for Pause
impl Pausable<PauseReason> for Pause
Source§fn pause_query(&self) -> &Option<PauseReason>
fn pause_query(&self) -> &Option<PauseReason>
查询维护状态
Source§fn pause_replace(&mut self, reason: Option<PauseReason>)
fn pause_replace(&mut self, reason: Option<PauseReason>)
修改维护状态
Source§fn pause_is_paused(&self) -> bool
fn pause_is_paused(&self) -> bool
是否维护中
Source§fn pause_is_running(&self) -> bool
fn pause_is_running(&self) -> bool
是否正常运行
Source§impl Reasonable for PauseReason
impl Reasonable for PauseReason
Auto Trait Implementations§
impl Freeze for PauseReason
impl RefUnwindSafe for PauseReason
impl Send for PauseReason
impl Sync for PauseReason
impl Unpin for PauseReason
impl UnsafeUnpin for PauseReason
impl UnwindSafe for PauseReason
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