Struct robius_open::Uri
source · pub struct Uri<'a, 'b> { /* private fields */ }Expand description
A uniform resource identifier.
Implementations§
source§impl<'a, 'b> Uri<'a, 'b>
impl<'a, 'b> Uri<'a, 'b>
sourcepub fn new(s: &'a str) -> Self
pub fn new(s: &'a str) -> Self
Constructs a new URI.
Examples found in repository?
More examples
sourcepub fn action(self, action: &'b str) -> Self
pub fn action(self, action: &'b str) -> Self
Sets the action to perform with this URI.
This only has an effect on Android, and corresponds to an action
activity. By default, it is set to "ACTION_VIEW".
§Examples
Uri::new("tel:+61 123 456 789")
.action("ACTION_DIAL")
.open()
.expect("failed to open telephone URI");Examples found in repository?
More examples
Auto Trait Implementations§
impl<'a, 'b> Freeze for Uri<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Uri<'a, 'b>
impl<'a, 'b> Send for Uri<'a, 'b>
impl<'a, 'b> Sync for Uri<'a, 'b>
impl<'a, 'b> Unpin for Uri<'a, 'b>
impl<'a, 'b> UnwindSafe for Uri<'a, 'b>
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