pub struct UpdateResult {
pub doc_status: bool,
pub version: String,
pub updating: bool,
}Expand description
The result returned by a cache update closure.
The UI component uses this value to update its internal state signals without knowing how the update check was performed.
Fields§
§doc_status: boolWhether the documentation build succeeded.
version: StringThe latest version string of the crate.
updating: boolWhether a cache update operation was triggered.
Implementations§
Source§impl UpdateResult
impl UpdateResult
pub fn get_doc_status(&self) -> bool
pub fn get_mut_doc_status(&mut self) -> &mut bool
pub fn set_doc_status(&mut self, val: bool) -> &mut Self
pub fn get_version(&self) -> &String
pub fn get_mut_version(&mut self) -> &mut String
pub fn set_version(&mut self, val: String) -> &mut Self
pub fn get_updating(&self) -> bool
pub fn get_mut_updating(&mut self) -> &mut bool
pub fn set_updating(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for UpdateResult
impl Clone for UpdateResult
Source§fn clone(&self) -> UpdateResult
fn clone(&self) -> UpdateResult
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 moreAuto Trait Implementations§
impl Freeze for UpdateResult
impl RefUnwindSafe for UpdateResult
impl Send for UpdateResult
impl Sync for UpdateResult
impl Unpin for UpdateResult
impl UnsafeUnpin for UpdateResult
impl UnwindSafe for UpdateResult
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