pub struct Webpage<'a> { /* private fields */ }Implementations§
Source§impl<'a> Webpage<'a>
impl<'a> Webpage<'a>
pub fn new() -> Self
Sourcepub fn file<S, D>(&mut self, name: &'a S, data: &'a D) -> &mut Self
pub fn file<S, D>(&mut self, name: &'a S, data: &'a D) -> &mut Self
Add a single file to the context of the webpage
pub fn files<Str, Data, Arr>(&mut self, files: &'a Arr) -> &mut Self
pub fn with_dir<P>(&mut self, dir_path: &'a P) -> &mut Self
pub fn background(&mut self, bg: OfflineBackgroundKind) -> &mut Self
pub fn boot_display(&mut self, boot: OfflineBootDisplayKind) -> &mut Self
pub fn javascript(&mut self, js: bool) -> &mut Self
pub fn pointer(&mut self, pointer: bool) -> &mut Self
pub fn boot_icon(&mut self, boot_icon: bool) -> &mut Self
pub fn web_audio(&mut self, audio: bool) -> &mut Self
pub fn start_page<S>(&mut self, path: &'a S) -> &mut Self
pub fn htdocs_dir<S>(&mut self, path: &'a S) -> &mut Self
pub fn open_session( &mut self, boot_mode: Visibility, ) -> Result<WebSession, OsError>
pub fn open(&mut self) -> Result<PageResult, OsError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Webpage<'a>
impl<'a> Freeze for Webpage<'a>
impl<'a> RefUnwindSafe for Webpage<'a>
impl<'a> Send for Webpage<'a>
impl<'a> Sync for Webpage<'a>
impl<'a> Unpin for Webpage<'a>
impl<'a> UnsafeUnpin for Webpage<'a>
impl<'a> UnwindSafe for Webpage<'a>
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