Enum browser_window::browser::Source[][src]

pub enum Source {
    Html(String),
    File(PathBuf),
    Url(String),
}
Expand description

The type of content to display in a browser window

Variants

Html(String)

Displays the given HTML code in the browser.

Tuple Fields of Html

0: String
File(PathBuf)

Displays the local file for the given path.

Tuple Fields of File

0: PathBuf
Url(String)

Displays the given URL in the browser.

Tuple Fields of Url

0: String

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

Performs the conversion.

Performs the conversion.

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.