#[non_exhaustive]pub struct ReloadStatus {
pub time: Option<Timestamp>,
pub status: Option<Status>,
/* private fields */
}Available on crate feature
documents only.Expand description
The status of a reload attempt.
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.time: Option<Timestamp>The time of a reload attempt. This reload may have been triggered automatically or manually and may not have succeeded.
status: Option<Status>The status of a reload attempt or the initial load.
Implementations§
Source§impl ReloadStatus
impl ReloadStatus
pub fn new() -> Self
Sourcepub fn set_or_clear_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ReloadStatus
impl Clone for ReloadStatus
Source§fn clone(&self) -> ReloadStatus
fn clone(&self) -> ReloadStatus
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 ReloadStatus
impl Debug for ReloadStatus
Source§impl Default for ReloadStatus
impl Default for ReloadStatus
Source§fn default() -> ReloadStatus
fn default() -> ReloadStatus
Returns the “default value” for a type. Read more
Source§impl Message for ReloadStatus
impl Message for ReloadStatus
Source§impl PartialEq for ReloadStatus
impl PartialEq for ReloadStatus
impl StructuralPartialEq for ReloadStatus
Auto Trait Implementations§
impl Freeze for ReloadStatus
impl RefUnwindSafe for ReloadStatus
impl Send for ReloadStatus
impl Sync for ReloadStatus
impl Unpin for ReloadStatus
impl UnwindSafe for ReloadStatus
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