pub struct ProtocolRegistry { /* private fields */ }Expand description
Cross-platform registry managing custom URI protocol handlers and incoming deep links.
Implementations§
Source§impl ProtocolRegistry
Registration and incoming link queuing for ProtocolRegistry.
impl ProtocolRegistry
Registration and incoming link queuing for ProtocolRegistry.
Sourcepub fn register(
&mut self,
registration: ProtocolRegistration,
platform: PlatformKind,
) -> Result<ProtocolManifestEntry, PlatformError>
pub fn register( &mut self, registration: ProtocolRegistration, platform: PlatformKind, ) -> Result<ProtocolManifestEntry, PlatformError>
Validates and registers registration for platform, returning its OS manifest descriptor.
§Arguments
&Self- Mutable protocol registry.ProtocolRegistration- Custom protocol specification.PlatformKind- Active platform kind.
§Returns
Result<ProtocolManifestEntry, PlatformError>- Generated platform registration descriptor.
Sourcepub fn is_registered(&self, scheme: &str) -> bool
pub fn is_registered(&self, scheme: &str) -> bool
Sourcepub fn push_raw_url(
&mut self,
raw_url: &str,
) -> Result<DeepLinkEvent, PlatformError>
pub fn push_raw_url( &mut self, raw_url: &str, ) -> Result<DeepLinkEvent, PlatformError>
Sourcepub fn drain_links(&mut self) -> Vec<DeepLinkEvent>
pub fn drain_links(&mut self) -> Vec<DeepLinkEvent>
Source§impl ProtocolRegistry
impl ProtocolRegistry
pub fn get_registrations(&self) -> &Vec<ProtocolRegistration>
pub fn get_mut_registrations(&mut self) -> &mut Vec<ProtocolRegistration>
pub fn set_registrations(&mut self, val: Vec<ProtocolRegistration>) -> &mut Self
pub fn get_pending_links(&self) -> &Vec<DeepLinkEvent>
pub fn get_mut_pending_links(&mut self) -> &mut Vec<DeepLinkEvent>
pub fn set_pending_links(&mut self, val: Vec<DeepLinkEvent>) -> &mut Self
Trait Implementations§
Source§impl Clone for ProtocolRegistry
impl Clone for ProtocolRegistry
Source§impl Debug for ProtocolRegistry
impl Debug for ProtocolRegistry
Auto Trait Implementations§
impl Forget for ProtocolRegistry
impl Freeze for ProtocolRegistry
impl Move for ProtocolRegistry
impl RefUnwindSafe for ProtocolRegistry
impl Send for ProtocolRegistry
impl Sync for ProtocolRegistry
impl Unpin for ProtocolRegistry
impl UnsafeUnpin for ProtocolRegistry
impl UnwindSafe for ProtocolRegistry
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