pub struct UrlCallbackChannel { /* private fields */ }Expand description
Receives WebView navigations intercepted for its callback URL. Dropping the channel stops the interception.
Implementations§
Source§impl UrlCallbackChannel
impl UrlCallbackChannel
Sourcepub fn callback_url(&self) -> &str
pub fn callback_url(&self) -> &str
The callback URL this channel matches, in normalized (match-key) form.
Sourcepub async fn recv(&mut self) -> String
pub async fn recv(&mut self) -> String
Waits for the next navigation to the callback URL and returns the full navigated URL, query and fragment included.
Pends indefinitely until a matching navigation happens — bound the wait externally (a timeout, or racing dismissal of the presenting surface).
Trait Implementations§
Source§impl Debug for UrlCallbackChannel
impl Debug for UrlCallbackChannel
Source§impl Drop for UrlCallbackChannel
impl Drop for UrlCallbackChannel
Auto Trait Implementations§
impl Freeze for UrlCallbackChannel
impl RefUnwindSafe for UrlCallbackChannel
impl Send for UrlCallbackChannel
impl Sync for UrlCallbackChannel
impl Unpin for UrlCallbackChannel
impl UnsafeUnpin for UrlCallbackChannel
impl UnwindSafe for UrlCallbackChannel
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