pub enum UserAgentPlatform {
Desktop,
Android,
OpenHarmony,
Ios,
}Variants§
Implementations§
Source§impl UserAgentPlatform
impl UserAgentPlatform
Sourcepub fn to_user_agent_string(&self) -> String
pub fn to_user_agent_string(&self) -> String
Convert this UserAgentPlatform into its corresponding String value, ie the
default user-agent to use for this platform.
Auto Trait Implementations§
impl Freeze for UserAgentPlatform
impl RefUnwindSafe for UserAgentPlatform
impl Send for UserAgentPlatform
impl Sync for UserAgentPlatform
impl Unpin 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