pub struct UserScript {
pub source: Arc<str>,
pub at: InjectAt,
pub frames: Frames,
}Expand description
A script the view runs in every page it loads (crate::WebView::user_script), in the
page’s own JavaScript world.
Fields§
§source: Arc<str>The script.
at: InjectAtWhen it runs.
frames: FramesWhich frames it runs in.
Implementations§
Trait Implementations§
Source§impl Clone for UserScript
impl Clone for UserScript
Source§impl Debug for UserScript
impl Debug for UserScript
impl Eq for UserScript
Source§impl PartialEq for UserScript
impl PartialEq for UserScript
impl StructuralPartialEq for UserScript
Auto Trait Implementations§
impl Forget for UserScript
impl Freeze for UserScript
impl Move for UserScript
impl RefUnwindSafe for UserScript
impl Send for UserScript
impl Sync for UserScript
impl Unpin for UserScript
impl UnsafeUnpin for UserScript
impl UnwindSafe for UserScript
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more