Struct skyline_web::Webpage
source · pub struct Webpage<'a> { /* private fields */ }
Implementations
sourceimpl<'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 Selfwhere
S: AsRef<str> + ?Sized + 'a,
D: AsRef<[u8]> + ?Sized + 'a,
pub fn file<S, D>(&mut self, name: &'a S, data: &'a D) -> &mut Selfwhere
S: AsRef<str> + ?Sized + 'a,
D: AsRef<[u8]> + ?Sized + 'a,
Add a single file to the context of the webpage
pub fn files<Str, Data, Arr>(&mut self, files: &'a Arr) -> &mut Selfwhere
Str: AsRef<str> + Sized + 'a,
Data: AsRef<[u8]> + Sized + 'a,
Arr: AsRef<[(Str, Data)]> + ?Sized + 'a,
pub fn with_dir<P>(&mut self, dir_path: &'a P) -> &mut Selfwhere
P: AsRef<Path> + ?Sized + 'a,
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 Selfwhere
S: AsRef<str> + ?Sized + 'a,
pub fn htdocs_dir<S>(&mut self, path: &'a S) -> &mut Selfwhere
S: AsRef<str> + ?Sized + 'a,
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> RefUnwindSafe for Webpage<'a>
impl<'a> Send for Webpage<'a>
impl<'a> Sync for Webpage<'a>
impl<'a> Unpin for Webpage<'a>
impl<'a> UnwindSafe for Webpage<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more