pub fn open_channel(
callback_url: impl Into<String>,
) -> Result<UrlCallbackChannel, InvalidCallbackUrl>Expand description
Open a callback channel for callback_url, e.g. "myapp://callback".
Matching compares whole URLs with the query, fragment, and any trailing /
ignored; the scheme and authority compare case-insensitively, the path
exactly. myapp://callback?k=v matches a channel opened for
myapp://callback; myapp://callback/extra does not.
Channels may overlap: the most recently opened channel matching a URL
receives it. Errs when callback_url is empty or has no scheme.