pub struct SplashInfo {
pub user: String,
pub host: String,
pub version: String,
pub dev_label: Option<String>,
}Fields§
§user: String§host: String§version: String§dev_label: Option<String>Some only on non-stable builds (dev / explicit channel); None on a
stable release (footer then shows just the version).
Implementations§
Source§impl SplashInfo
impl SplashInfo
pub fn gather() -> Self
Sourcepub fn gather_and_log(reason: &str) -> Self
pub fn gather_and_log(reason: &str) -> Self
gather, and one line in the launcher log saying what this splash presents and why it is on screen
(reason: start, restart, upgrade). The splash’s version is the launcher’s own, fixed when it
was built; this line is the record of it, so a splash that showed a version other than the one starting
can be told from the log, with the path of the launcher that painted it.
Sourcepub fn channel(&self) -> &str
pub fn channel(&self) -> &str
stable for a release; the dev label (dev, or the explicit channel) otherwise.
Sourcepub fn log_line(&self, reason: &str, exe: &str) -> String
pub fn log_line(&self, reason: &str, exe: &str) -> String
The launcher-log line for a splash being painted.
The footer lines to render (each clamped to max_chars):
line 1 = user@host, line 2 = v<version> (+ DEV on dev builds).
Auto Trait Implementations§
impl Freeze for SplashInfo
impl RefUnwindSafe for SplashInfo
impl Send for SplashInfo
impl Sync for SplashInfo
impl Unpin for SplashInfo
impl UnsafeUnpin for SplashInfo
impl UnwindSafe for SplashInfo
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
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.