pub struct AppUpdateStatus {Show 14 fields
pub state: String,
pub current: String,
pub latest: Option<String>,
pub url: Option<String>,
pub notes: Option<String>,
pub published_at: Option<String>,
pub checked_ms: i64,
pub install: String,
pub asset: Option<ReleaseAsset>,
pub can_download: bool,
pub download_blocked: Option<String>,
pub download: Option<DownloadStatus>,
pub install_first: Option<String>,
pub rev: u64,
}Expand description
What srv knows about releases, as every window shows it.
Fields§
§state: Stringup-to-date, available (a newer release exists), local-build
(this build isn’t a release; latest says which release is) or
unknown (not checked yet).
current: StringThis build’s version.
latest: Option<String>The latest release’s version, without the v.
url: Option<String>The latest release’s page.
notes: Option<String>Its notes (the release body), at most 16 KB.
published_at: Option<String>§checked_ms: i64When the last check answered (unix ms), 0 before any. The status is that check’s answer until the next one.
install: StringHow this AgentMux was installed (update::install): windows-portable,
windows-setup, windows-store, macos-app, linux-appimage,
linux-portable, linux-package or unknown.
asset: Option<ReleaseAsset>The latest release’s file for this install, when it has one.
can_download: boolWhether AgentMux can download and stage that file itself; otherwise the release page (or the Store) is the way.
download_blocked: Option<String>When a newer release is on offer and this install could upgrade itself but can’t now, why: a macOS app that can’t be replaced in place, a release known only by its tag (GitHub is limiting the check), or a release with no file for this computer. The page says so beside the button that opens the download page.
download: Option<DownloadStatus>A download of the latest release, once one was asked for.
install_first: Option<String>When this AgentMux is older than the latest release can upgrade from
(the release’s upgrade floor, [upgrade_floor]): the version to
install first. The latest release then isn’t offered for download.
rev: u64Rises with every change srv makes to this status. The answer to a click and the event for a later change
reach a window in either order, so a window keeps the one with the higher rev. Unix ms, pushed up when
two changes share a millisecond; 0 from an srv that doesn’t say.
Trait Implementations§
Source§impl Clone for AppUpdateStatus
impl Clone for AppUpdateStatus
Source§fn clone(&self) -> AppUpdateStatus
fn clone(&self) -> AppUpdateStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppUpdateStatus
impl Debug for AppUpdateStatus
Source§impl<'de> Deserialize<'de> for AppUpdateStatus
impl<'de> Deserialize<'de> for AppUpdateStatus
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>,
impl Eq for AppUpdateStatus
Source§impl PartialEq for AppUpdateStatus
impl PartialEq for AppUpdateStatus
Source§impl Serialize for AppUpdateStatus
impl Serialize for AppUpdateStatus
impl StructuralPartialEq for AppUpdateStatus
Source§impl TS for AppUpdateStatus
impl TS for AppUpdateStatus
Source§type WithoutGenerics = AppUpdateStatus
type WithoutGenerics = AppUpdateStatus
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = AppUpdateStatus
type OptionInnerType = AppUpdateStatus
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for AppUpdateStatus
impl RefUnwindSafe for AppUpdateStatus
impl Send for AppUpdateStatus
impl Sync for AppUpdateStatus
impl Unpin for AppUpdateStatus
impl UnsafeUnpin for AppUpdateStatus
impl UnwindSafe for AppUpdateStatus
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more