Struct ashpd::desktop::open_uri::OpenURIProxy [−][src]
pub struct OpenURIProxy<'a>(_);
Expand description
The interface lets sandboxed applications open URIs (e.g. a http: link to the applications homepage) under the control of the user.
Implementations
Create a new instance of OpenURIProxy
.
pub async fn open_directory<F>(
&self,
identifier: WindowIdentifier,
directory: F
) -> Result<(), Error> where
F: AsRawFd + Serialize + Type,
pub async fn open_directory<F>(
&self,
identifier: WindowIdentifier,
directory: F
) -> Result<(), Error> where
F: AsRawFd + Serialize + Type,
Asks to open the directory containing a local file in the file browser.
Arguments
identifier
- Identifier for the application window.directory
- File descriptor for a file.
Asks to open a local file.
Arguments
identifier
- Identifier for the application window.file
- File descriptor for the file to open.writeable
- Whether the file should be writeable or not.ask
- Whether to always ask the user which application to use or not.
Asks to open a local file.
Arguments
identifier
- Identifier for the application window.uri
- The uri to open.writeable
- Whether the file should be writeable or not.ask
- Whether to always ask the user which application to use or not.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for OpenURIProxy<'a>
impl<'a> Send for OpenURIProxy<'a>
impl<'a> Sync for OpenURIProxy<'a>
impl<'a> Unpin for OpenURIProxy<'a>
impl<'a> !UnwindSafe for OpenURIProxy<'a>