pub enum UserAgentPlatform {
Android,
Ios,
MacOs,
Windows,
Linux,
Unknown,
}Expand description
Operating-system family parsed from a User-Agent string.
Variants§
Android
Android.
Ios
iPhone or iPad iOS/iPadOS.
MacOs
macOS.
Windows
Windows.
Linux
Linux desktop.
Unknown
No supported platform token was present.
Implementations§
Source§impl UserAgentPlatform
impl UserAgentPlatform
Sourcepub const fn client_hint_value(self) -> Option<&'static str>
pub const fn client_hint_value(self) -> Option<&'static str>
Low-entropy Client Hint platform value, including browser-required quotes.
Sourcepub const fn chrome_tls_label(self) -> Option<&'static str>
pub const fn chrome_tls_label(self) -> Option<&'static str>
Platform label used by the Chrome TLS diagnostic catalogue.
Trait Implementations§
Source§impl Clone for UserAgentPlatform
impl Clone for UserAgentPlatform
Source§fn clone(&self) -> UserAgentPlatform
fn clone(&self) -> UserAgentPlatform
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 UserAgentPlatform
Source§impl Debug for UserAgentPlatform
impl Debug for UserAgentPlatform
impl Eq for UserAgentPlatform
Source§impl PartialEq for UserAgentPlatform
impl PartialEq for UserAgentPlatform
Source§fn eq(&self, other: &UserAgentPlatform) -> bool
fn eq(&self, other: &UserAgentPlatform) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UserAgentPlatform
Auto Trait Implementations§
impl Freeze for UserAgentPlatform
impl RefUnwindSafe for UserAgentPlatform
impl Send for UserAgentPlatform
impl Sync for UserAgentPlatform
impl Unpin for UserAgentPlatform
impl UnsafeUnpin for UserAgentPlatform
impl UnwindSafe for UserAgentPlatform
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