pub enum Platform {
Scheme,
HttpSubdomain,
HttpsSubdomain,
}Expand description
The URL shape a webview gives a custom protocol.
The only place in this crate that names an operating system. A new platform adds a variant here and nowhere else.
Variants§
Scheme
<scheme>://localhost/... - macOS, iOS, Linux.
HttpSubdomain
http://<scheme>.localhost/... - Windows and Android, where the
webview rewrites custom schemes onto http.
HttpsSubdomain
https://<scheme>.localhost/... - as HttpSubdomain, for a webview
configured to use https for that rewrite.
Implementations§
Trait Implementations§
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze 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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.