Enum webmanifest::Orientation[][src]

pub enum Orientation {
    Any,
    Natural,
    Landscape,
    LandscapPrimary,
    LandscapSecondary,
    Portrait,
    PortraitPrimary,
    PortraitSecondary,
}

Defines the default orientation for all the website's top level browsing contexts.

Example

let name = "My Cool Application";
let manifest = Manifest::builder(name)
  .orientation(Orientation::Portrait)
  .build()?;

Variants

Trait Implementations

impl Debug for Orientation
[src]

Formats the value using the given formatter. Read more

impl Clone for Orientation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Orientation

impl Sync for Orientation