pub struct WebProxyBuilder { /* private fields */ }Expand description
Implementations§
Source§impl WebProxyBuilder
impl WebProxyBuilder
pub fn new<S: Into<String>>(web_tag: S, object_name: S) -> Self
Sourcepub fn add_method<S, F>(self, js_name: S, callback: F) -> WebProxyBuilder
pub fn add_method<S, F>(self, js_name: S, callback: F) -> WebProxyBuilder
Add a method to the proxy
§Arguments
js_name- The name of the method in JScallback- The callback function to be called when the method is called
pub fn build(self) -> Result<WebProxy, ArkWebError>
Auto Trait Implementations§
impl Freeze for WebProxyBuilder
impl RefUnwindSafe for WebProxyBuilder
impl !Send for WebProxyBuilder
impl !Sync for WebProxyBuilder
impl Unpin for WebProxyBuilder
impl UnsafeUnpin for WebProxyBuilder
impl UnwindSafe for WebProxyBuilder
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