pub enum Platform {
Linux,
Tvos,
Ios,
Macos,
Cli,
Android,
AndroidTv,
Xbox,
Web,
Unknown,
}Variants§
Linux
The Linux desktop app (spoolframe-linux).
Tvos
The Apple TV app.
Ios
The iPhone and iPad app.
Macos
The Mac app.
Cli
A command-line or scripted client of the SDK (its examples, tools), or, for an admin API session, the server’s own CLI.
Android
The Android app on phones and tablets; on a TV, from an app
before it said Platform::AndroidTv, too.
AndroidTv
The Android app on Android TV and Google TV (wire android_tv).
A peer before it reads it as Platform::Unknown.
Xbox
The Xbox app.
Web
A client in a browser: a web player’s Hello, or an admin API
session the web UI signed in.
Unknown
A platform this build does not know, from a newer peer.
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn from_name(name: &str) -> Self
pub fn from_name(name: &str) -> Self
The platform named name (Platform::as_str); a name this build
does not know is Platform::Unknown, as on the wire.
Trait Implementations§
impl Copy for Platform
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Forget for Platform
impl Freeze for Platform
impl Move for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
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