Skip to main content

HostWarning

Enum HostWarning 

Source
pub enum HostWarning {
    PreTimebaseMovie,
    RecoveredFromInternalError,
}
Expand description

A machine-readable code for a host-facing warning. See the module docs.

Variants§

§

PreTimebaseMovie

A .rnm recorded on a pre-v2.0.0 “Timebase” build was loaded: its recorded input replays faithfully, but exact framebuffer / audio reproduction is not guaranteed across the engine-timebase boundary (ADR 0028).

No longer produced (v2.9.8). .rnm format 3 records the emulation options and every older movie is refused with an error that says to re-record it, so a pre-v2.0.0 movie never reaches playback. The variant stays so hosts’ localisation tables keep their meaning.

§

RecoveredFromInternalError

v2.7.4 (frontend audit MOB-07) — a call panicked inside the mobile bridge. The panic was contained (the mobile libraries unwind), but it may have left the emulator mid-update, so any netplay session was ended and the machine is frozen: the app stays open, the picture holds, and no further emulated cycle runs until the player reopens the game, power cycles, or loads a save state.

Implementations§

Source§

impl HostWarning

Source

pub const ALL: [Self; 2]

Every code, in declaration order (for hosts building a localisation table, and for the tests that pin each message).

Source

pub fn message(&self) -> String

The canonical English text for this code.

Byte-identical to what the mobile bridge queued before v2.0.3 (and has returned from its legacy drain_warnings since), so a host that does not localise observes no change.

Trait Implementations§

Source§

impl Clone for HostWarning

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for HostWarning

Source§

impl Debug for HostWarning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HostWarning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for HostWarning

Source§

impl Hash for HostWarning

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for HostWarning

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HostWarning

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.