#[non_exhaustive]pub struct CrashReports {
pub game_version: &'static str,
pub keep: u32,
}Expand description
Whether run writes crash reports, and with what version of the game.
Build it with CrashReports::new or CrashReports::off; a game
sets AppConfig::crash to it.
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.game_version: &'static strThe game’s version, in each report: empty if the game gave none.
keep: u32How many reports are kept, the newest: 0 installs no hook.
Implementations§
Trait Implementations§
Source§impl Clone for CrashReports
impl Clone for CrashReports
Source§fn clone(&self) -> CrashReports
fn clone(&self) -> CrashReports
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 moreimpl Copy for CrashReports
Source§impl Debug for CrashReports
impl Debug for CrashReports
Source§impl Default for CrashReports
impl Default for CrashReports
impl Eq for CrashReports
Source§impl PartialEq for CrashReports
impl PartialEq for CrashReports
impl StructuralPartialEq for CrashReports
Auto Trait Implementations§
impl Freeze for CrashReports
impl RefUnwindSafe for CrashReports
impl Send for CrashReports
impl Sync for CrashReports
impl Unpin for CrashReports
impl UnsafeUnpin for CrashReports
impl UnwindSafe for CrashReports
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§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
Compare self to
key and return true if they are equal.