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.
File(PathBuf)
Displays the local file for the given path.
Url(String)
Displays the given URL in the browser.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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