pub enum DisplayMode {
    FullScreen,
    Standalone,
    MinimalUi,
    Browser,
}
Expand description

Defines the developers’ preferred display mode for the website.

Example

let name = "My Cool Application";
let manifest = Manifest::builder(name)
  .display_mode(DisplayMode::Standalone)
  .build()?;

Variants§

§

FullScreen

All of the available display area is used and no user agent chrome is shown.

§

Standalone

The application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.

§

MinimalUi

The application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser.

§

Browser

The application opens in a conventional browser tab or new window, depending on the browser and platform. This is the default.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.