pub struct WindowOpenEventBuilder { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Implementations§
Source§impl WindowOpenEventBuilder
impl WindowOpenEventBuilder
Sourcepub fn window_name(&mut self, v: String) -> &mut Self
pub fn window_name(&mut self, v: String) -> &mut Self
Window name.
Sourcepub fn window_features(&mut self, v: Vec<String>) -> &mut Self
pub fn window_features(&mut self, v: Vec<String>) -> &mut Self
An array of enabled window features.
Sourcepub fn user_gesture(&mut self, v: bool) -> &mut Self
pub fn user_gesture(&mut self, v: bool) -> &mut Self
Whether or not it was triggered by user gesture.
pub fn build(&mut self) -> Result<WindowOpenEvent, &'static str>
Trait Implementations§
Source§impl Clone for WindowOpenEventBuilder
impl Clone for WindowOpenEventBuilder
Source§fn clone(&self) -> WindowOpenEventBuilder
fn clone(&self) -> WindowOpenEventBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowOpenEventBuilder
impl Debug for WindowOpenEventBuilder
Auto Trait Implementations§
impl Freeze for WindowOpenEventBuilder
impl RefUnwindSafe for WindowOpenEventBuilder
impl Send for WindowOpenEventBuilder
impl Sync for WindowOpenEventBuilder
impl Unpin for WindowOpenEventBuilder
impl UnwindSafe for WindowOpenEventBuilder
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