pub struct UpdateChannel {
pub name: String,
pub description: String,
pub latest_version: String,
}
Fields§
§name: String
§description: String
§latest_version: String
Implementations§
source§impl UpdateChannel
impl UpdateChannel
pub fn all() -> Result<Array<UpdateChannel>, BnString>
sourcepub fn latest_version(&self) -> Result<UpdateVersion, BnString>
pub fn latest_version(&self) -> Result<UpdateVersion, BnString>
Latest version
sourcepub fn updates_available(&self) -> Result<bool, BnString>
pub fn updates_available(&self) -> Result<bool, BnString>
Whether updates are available
pub fn update_to_latest(&self) -> Result<UpdateResult, BnString>
pub fn update_to_latest_with_progress<P: ProgressCallback>( &self, progress: P, ) -> Result<UpdateResult, BnString>
pub fn update(&self, version: &UpdateVersion) -> Result<UpdateResult, BnString>
pub fn update_with_progress<P: ProgressCallback>( &self, version: &UpdateVersion, progress: P, ) -> Result<UpdateResult, BnString>
Trait Implementations§
source§impl Clone for UpdateChannel
impl Clone for UpdateChannel
source§fn clone(&self) -> UpdateChannel
fn clone(&self) -> UpdateChannel
Returns a copy 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 CoreArrayProvider for UpdateChannel
impl CoreArrayProvider for UpdateChannel
Auto Trait Implementations§
impl Freeze for UpdateChannel
impl RefUnwindSafe for UpdateChannel
impl Send for UpdateChannel
impl Sync for UpdateChannel
impl Unpin for UpdateChannel
impl UnwindSafe for UpdateChannel
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