#[non_exhaustive]pub enum StatsErrorKind {
NoBackend,
InvalidName,
NotFinite,
InvalidRequest,
Refused,
NotReady,
StoreRefused,
StoreRejected,
StoreFailed,
StoreTimedOut,
}stats only.Expand description
What went wrong in a StatsError. #[non_exhaustive].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoBackend
No SteamBackendRes (or its backend does not support stats).
InvalidName
Empty, longer than MAX_API_NAME_BYTES, or containing a NUL byte.
NotFinite
A float value (or an AddStat result) that is NaN or infinite.
InvalidRequest
A request field was unusable (IndicateAchievementProgress with max == 0).
Refused
Steam refused the call: unknown name, wrong stat type, or not allowed for this app (for example lowering a stat that may only increase).
NotReady
A write held while stats were not ready was dropped (the queue was full, or the app exited first).
StoreRefused
store_stats was refused locally (no stats for this app, or not loaded). Reported once;
the changes stay unsaved and are tried again at the normal cadence.
StoreRejected
Steam rejected the store (InvalidParameter: a stat broke a constraint set on the partner
site). Steam restored its values: read them again.
StoreFailed
The store failed for another reason (the changes are stored again).
StoreTimedOut
No store outcome arrived within StatsSettings::store_timeout (the changes are stored
again later).
Trait Implementations§
Source§impl Clone for StatsErrorKind
impl Clone for StatsErrorKind
impl Copy for StatsErrorKind
Source§impl Debug for StatsErrorKind
impl Debug for StatsErrorKind
impl Eq for StatsErrorKind
Source§impl Hash for StatsErrorKind
impl Hash for StatsErrorKind
Source§impl PartialEq for StatsErrorKind
impl PartialEq for StatsErrorKind
impl StructuralPartialEq for StatsErrorKind
Auto Trait Implementations§
impl Freeze for StatsErrorKind
impl RefUnwindSafe for StatsErrorKind
impl Send for StatsErrorKind
impl Sync for StatsErrorKind
impl Unpin for StatsErrorKind
impl UnsafeUnpin for StatsErrorKind
impl UnwindSafe for StatsErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§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>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§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.Source§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.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Source§impl<T> Template for T
impl<T> Template for T
Source§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a Template::Output.Source§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.