#[non_exhaustive]pub struct OpenUrlRequest { /* private fields */ }Expand description
A URL the app opens (openUrl of nsh/device), as the embedding app’s
URL handler gets it (HostChannel::handle_open_url). Answered once,
from any thread: OpenUrlRequest::handled when the embedding app
took it, OpenUrlRequest::decline for the system to open it (also
what dropping it unanswered does).
Implementations§
Source§impl OpenUrlRequest
impl OpenUrlRequest
Sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
The URL: absolute, of a scheme that opens another app
(nsh_core::open_url::check_url).
Sourcepub fn handled(self)
pub fn handled(self)
The embedding app took the URL (routed it its own way): the app’s
openUrl resolves true and the system does not open it.
Sourcepub fn answer(self, handled: bool)
pub fn answer(self, handled: bool)
OpenUrlRequest::handled when handled, else
OpenUrlRequest::decline.
Trait Implementations§
Source§impl Debug for OpenUrlRequest
impl Debug for OpenUrlRequest
Source§impl Default for OpenUrlRequest
impl Default for OpenUrlRequest
Source§impl Drop for OpenUrlRequest
impl Drop for OpenUrlRequest
Auto Trait Implementations§
impl Freeze for OpenUrlRequest
impl RefUnwindSafe for OpenUrlRequest
impl Send for OpenUrlRequest
impl Sync for OpenUrlRequest
impl Unpin for OpenUrlRequest
impl UnsafeUnpin for OpenUrlRequest
impl UnwindSafe for OpenUrlRequest
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