deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
77
cosmic/dialog/file_chooser/enum.Error.html
Normal file
77
cosmic/dialog/file_chooser/enum.Error.html
Normal file
File diff suppressed because one or more lines are too long
70
cosmic/dialog/file_chooser/index.html
Normal file
70
cosmic/dialog/file_chooser/index.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Dialogs for opening and save files."><title>cosmic::dialog::file_chooser - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module file_<wbr>chooser</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#features" title="Features">Features</a></li><li><a href="#open-a-file" title="Open a file">Open a file</a></li><li><a href="#open-multiple-files" title="Open multiple files">Open multiple files</a></li><li><a href="#open-a-folder" title="Open a folder">Open a folder</a></li><li><a href="#open-multiple-folders" title="Open multiple folders">Open multiple folders</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>dialog</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">dialog</a></div><h1>Module <span>file_chooser</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/dialog/file_chooser/mod.rs.html#4-148">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>xdg-portal</code> or <code>rfd</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Dialogs for opening and save files.</p>
|
||||
<h2 id="features"><a class="doc-anchor" href="#features">§</a>Features</h2>
|
||||
<ul>
|
||||
<li>On Linux, the <code>xdg-portal</code> feature will use XDG Portal dialogs.</li>
|
||||
<li>Alternatively, <code>rfd</code> can be used for platform support beyond Linux.</li>
|
||||
</ul>
|
||||
<h2 id="open-a-file"><a class="doc-anchor" href="#open-a-file">§</a>Open a file</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>cosmic::task::future(<span class="kw">async </span>{
|
||||
<span class="kw">use </span>cosmic::dialog::file_chooser;
|
||||
|
||||
<span class="kw">let </span>dialog = file_chooser::open::Dialog::new()
|
||||
.title(<span class="string">"Choose a file"</span>);
|
||||
|
||||
<span class="kw">match </span>dialog.open_file().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"selected to open {:?}"</span>, response.url()),
|
||||
|
||||
<span class="prelude-val">Err</span>(file_chooser::Error::Cancelled) => (),
|
||||
|
||||
<span class="prelude-val">Err</span>(why) => <span class="macro">eprintln!</span>(<span class="string">"error selecting file to open: {why:?}"</span>)
|
||||
}
|
||||
});</code></pre></div>
|
||||
<h2 id="open-multiple-files"><a class="doc-anchor" href="#open-multiple-files">§</a>Open multiple files</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>cosmic::task::future(<span class="kw">async </span>{
|
||||
<span class="kw">use </span>cosmic::dialog::file_chooser;
|
||||
|
||||
<span class="kw">let </span>dialog = file_chooser::open::Dialog::new()
|
||||
.title(<span class="string">"Choose multiple files"</span>);
|
||||
|
||||
<span class="kw">match </span>dialog.open_files().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"selected to open {:?}"</span>, response.urls()),
|
||||
|
||||
<span class="prelude-val">Err</span>(file_chooser::Error::Cancelled) => (),
|
||||
|
||||
<span class="prelude-val">Err</span>(why) => <span class="macro">eprintln!</span>(<span class="string">"error selecting file(s) to open: {why:?}"</span>)
|
||||
}
|
||||
});</code></pre></div>
|
||||
<h2 id="open-a-folder"><a class="doc-anchor" href="#open-a-folder">§</a>Open a folder</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>cosmic::task::future(<span class="kw">async </span>{
|
||||
<span class="kw">use </span>cosmic::dialog::file_chooser;
|
||||
|
||||
<span class="kw">let </span>dialog = file_chooser::open::Dialog::new()
|
||||
.title(<span class="string">"Choose a folder"</span>);
|
||||
|
||||
<span class="kw">match </span>dialog.open_folder().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"selected to open {:?}"</span>, response.url()),
|
||||
|
||||
<span class="prelude-val">Err</span>(file_chooser::Error::Cancelled) => (),
|
||||
|
||||
<span class="prelude-val">Err</span>(why) => <span class="macro">eprintln!</span>(<span class="string">"error selecting folder to open: {why:?}"</span>)
|
||||
}
|
||||
});</code></pre></div>
|
||||
<h2 id="open-multiple-folders"><a class="doc-anchor" href="#open-multiple-folders">§</a>Open multiple folders</h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>cosmic::task::future(<span class="kw">async </span>{
|
||||
<span class="kw">use </span>cosmic::dialog::file_chooser;
|
||||
|
||||
<span class="kw">let </span>dialog = file_chooser::open::Dialog::new()
|
||||
.title(<span class="string">"Choose a folder"</span>);
|
||||
|
||||
<span class="kw">match </span>dialog.open_folders().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"selected to open {:?}"</span>, response.urls()),
|
||||
|
||||
<span class="prelude-val">Err</span>(file_chooser::Error::Cancelled) => (),
|
||||
|
||||
<span class="prelude-val">Err</span>(why) => <span class="macro">eprintln!</span>(<span class="string">"error selecting folder(s) to open: {why:?}"</span>)
|
||||
}
|
||||
});</code></pre></div>
|
||||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="open/index.html" title="mod cosmic::dialog::file_chooser::open">open</a></dt><dd>Open file dialog.
|
||||
Request to open files and/or directories.</dd><dt><a class="mod" href="save/index.html" title="mod cosmic::dialog::file_chooser::save">save</a></dt><dd>Save file dialog.
|
||||
Choose a location to save a file to.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Choice.html" title="struct cosmic::dialog::file_chooser::Choice">Choice</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>Presents the user with a choice to select from or as a checkbox.</dd><dt><a class="struct" href="struct.FileFilter.html" title="struct cosmic::dialog::file_chooser::FileFilter">File<wbr>Filter</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>A file filter, to limit the available file choices to a mimetype or a glob
|
||||
pattern.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a></dt><dd>Errors that my occur when interacting with the file chooser subscription</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.DialogError.html" title="type cosmic::dialog::file_chooser::DialogError">Dialog<wbr>Error</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/dialog/file_chooser/open/fn.file.html
Normal file
1
cosmic/dialog/file_chooser/open/fn.file.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `file` fn in crate `cosmic`."><title>file in cosmic::dialog::file_chooser::open - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser::<wbr>open</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a>::<wbr><a href="index.html">open</a></div><h1>Function <span class="fn">file</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/open.rs.html#189-191">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn file(dialog: <a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::open::Dialog">Dialog</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.FileResponse.html" title="struct cosmic::dialog::file_chooser::open::FileResponse">FileResponse</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>xdg-portal</code> and (crate features <code>xdg-portal</code> or <code>rfd</code>)</strong> only.</div></span></section></div></main></body></html>
|
||||
1
cosmic/dialog/file_chooser/open/fn.files.html
Normal file
1
cosmic/dialog/file_chooser/open/fn.files.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `files` fn in crate `cosmic`."><title>files in cosmic::dialog::file_chooser::open - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser::<wbr>open</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a>::<wbr><a href="index.html">open</a></div><h1>Function <span class="fn">files</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/open.rs.html#193-195">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn files(dialog: <a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::open::Dialog">Dialog</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.MultiFileResponse.html" title="struct cosmic::dialog::file_chooser::open::MultiFileResponse">MultiFileResponse</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>xdg-portal</code> and (crate features <code>xdg-portal</code> or <code>rfd</code>)</strong> only.</div></span></section></div></main></body></html>
|
||||
1
cosmic/dialog/file_chooser/open/fn.folder.html
Normal file
1
cosmic/dialog/file_chooser/open/fn.folder.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `folder` fn in crate `cosmic`."><title>folder in cosmic::dialog::file_chooser::open - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser::<wbr>open</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a>::<wbr><a href="index.html">open</a></div><h1>Function <span class="fn">folder</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/open.rs.html#197-199">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn folder(dialog: <a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::open::Dialog">Dialog</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.FileResponse.html" title="struct cosmic::dialog::file_chooser::open::FileResponse">FileResponse</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>xdg-portal</code> and (crate features <code>xdg-portal</code> or <code>rfd</code>)</strong> only.</div></span></section></div></main></body></html>
|
||||
1
cosmic/dialog/file_chooser/open/fn.folders.html
Normal file
1
cosmic/dialog/file_chooser/open/fn.folders.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `folders` fn in crate `cosmic`."><title>folders in cosmic::dialog::file_chooser::open - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser::<wbr>open</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a>::<wbr><a href="index.html">open</a></div><h1>Function <span class="fn">folders</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/open.rs.html#201-203">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn folders(dialog: <a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::open::Dialog">Dialog</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.MultiFileResponse.html" title="struct cosmic::dialog::file_chooser::open::MultiFileResponse">MultiFileResponse</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>xdg-portal</code> and (crate features <code>xdg-portal</code> or <code>rfd</code>)</strong> only.</div></span></section></div></main></body></html>
|
||||
5
cosmic/dialog/file_chooser/open/index.html
Normal file
5
cosmic/dialog/file_chooser/open/index.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Open file dialog. Request to open files and/or directories."><title>cosmic::dialog::file_chooser::open - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module open</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a></div><h1>Module <span>open</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/open.rs.html#4-323">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>xdg-portal</code> or <code>rfd</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Open file dialog.
|
||||
Request to open files and/or directories.</p>
|
||||
<p>Check out the <a href="https://github.com/pop-os/libcosmic/tree/master/examples/open-dialog">open-dialog</a>
|
||||
example in our repository.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::open::Dialog">Dialog</a></dt><dd>A builder for an open file dialog</dd><dt><a class="struct" href="struct.FileResponse.html" title="struct cosmic::dialog::file_chooser::open::FileResponse">File<wbr>Response</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>A dialog response containing the selected file or folder.</dd><dt><a class="struct" href="struct.MultiFileResponse.html" title="struct cosmic::dialog::file_chooser::open::MultiFileResponse">Multi<wbr>File<wbr>Response</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>A dialog response containing the selected file(s) or folder(s).</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.file.html" title="fn cosmic::dialog::file_chooser::open::file">file</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dt><a class="fn" href="fn.files.html" title="fn cosmic::dialog::file_chooser::open::files">files</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dt><a class="fn" href="fn.folder.html" title="fn cosmic::dialog::file_chooser::open::folder">folder</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dt><a class="fn" href="fn.folders.html" title="fn cosmic::dialog::file_chooser::open::folders">folders</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt></dl></section></div></main></body></html>
|
||||
11
cosmic/dialog/file_chooser/open/portal/fn.file.html
Normal file
11
cosmic/dialog/file_chooser/open/portal/fn.file.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/fn.file.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/fn.file.html">../../../../../cosmic/dialog/file_chooser/open/fn.file.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/fn.file.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/dialog/file_chooser/open/portal/fn.files.html
Normal file
11
cosmic/dialog/file_chooser/open/portal/fn.files.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/fn.files.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/fn.files.html">../../../../../cosmic/dialog/file_chooser/open/fn.files.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/fn.files.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/dialog/file_chooser/open/portal/fn.folder.html
Normal file
11
cosmic/dialog/file_chooser/open/portal/fn.folder.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/fn.folder.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/fn.folder.html">../../../../../cosmic/dialog/file_chooser/open/fn.folder.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/fn.folder.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/dialog/file_chooser/open/portal/fn.folders.html
Normal file
11
cosmic/dialog/file_chooser/open/portal/fn.folders.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/fn.folders.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/fn.folders.html">../../../../../cosmic/dialog/file_chooser/open/fn.folders.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/fn.folders.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/struct.FileResponse.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/struct.FileResponse.html">../../../../../cosmic/dialog/file_chooser/open/struct.FileResponse.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/struct.FileResponse.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/open/struct.MultiFileResponse.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/open/struct.MultiFileResponse.html">../../../../../cosmic/dialog/file_chooser/open/struct.MultiFileResponse.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/open/struct.MultiFileResponse.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
cosmic/dialog/file_chooser/open/sidebar-items.js
Normal file
1
cosmic/dialog/file_chooser/open/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["file","files","folder","folders"],"struct":["Dialog","FileResponse","MultiFileResponse"]};
|
||||
78
cosmic/dialog/file_chooser/open/struct.Dialog.html
Normal file
78
cosmic/dialog/file_chooser/open/struct.Dialog.html
Normal file
File diff suppressed because one or more lines are too long
66
cosmic/dialog/file_chooser/open/struct.FileResponse.html
Normal file
66
cosmic/dialog/file_chooser/open/struct.FileResponse.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
cosmic/dialog/file_chooser/save/fn.file.html
Normal file
2
cosmic/dialog/file_chooser/save/fn.file.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Create a save file dialog request."><title>file in cosmic::dialog::file_chooser::save - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser::<wbr>save</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a>::<wbr><a href="index.html">save</a></div><h1>Function <span class="fn">file</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/save.rs.html#138-157">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn file(dialog: <a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::save::Dialog">Dialog</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Response.html" title="struct cosmic::dialog::file_chooser::save::Response">Response</a>, <a class="enum" href="../enum.Error.html" title="enum cosmic::dialog::file_chooser::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>xdg-portal</code> and (crate features <code>xdg-portal</code> or <code>rfd</code>)</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a save file dialog request.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
5
cosmic/dialog/file_chooser/save/index.html
Normal file
5
cosmic/dialog/file_chooser/save/index.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Save file dialog. Choose a location to save a file to."><title>cosmic::dialog::file_chooser::save - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module save</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">dialog</a>::<wbr><a href="../index.html">file_chooser</a></div><h1>Module <span>save</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../../src/cosmic/dialog/file_chooser/save.rs.html#4-212">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>xdg-portal</code> or <code>rfd</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Save file dialog.
|
||||
Choose a location to save a file to.</p>
|
||||
<p>Check out the <a href="https://github.com/pop-os/libcosmic/tree/master/examples/open-dialog">open-dialog</a>
|
||||
example in our repository.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Dialog.html" title="struct cosmic::dialog::file_chooser::save::Dialog">Dialog</a></dt><dd>A builder for an save file dialog.</dd><dt><a class="struct" href="struct.Response.html" title="struct cosmic::dialog::file_chooser::save::Response">Response</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>A dialog response containing the selected file or folder.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.file.html" title="fn cosmic::dialog::file_chooser::save::file">file</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dd>Create a save file dialog request.</dd></dl></section></div></main></body></html>
|
||||
11
cosmic/dialog/file_chooser/save/portal/fn.file.html
Normal file
11
cosmic/dialog/file_chooser/save/portal/fn.file.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/save/fn.file.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/save/fn.file.html">../../../../../cosmic/dialog/file_chooser/save/fn.file.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/save/fn.file.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
11
cosmic/dialog/file_chooser/save/portal/struct.Response.html
Normal file
11
cosmic/dialog/file_chooser/save/portal/struct.Response.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../../cosmic/dialog/file_chooser/save/struct.Response.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../../cosmic/dialog/file_chooser/save/struct.Response.html">../../../../../cosmic/dialog/file_chooser/save/struct.Response.html</a>...</p>
|
||||
<script>location.replace("../../../../../cosmic/dialog/file_chooser/save/struct.Response.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
1
cosmic/dialog/file_chooser/save/sidebar-items.js
Normal file
1
cosmic/dialog/file_chooser/save/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["file"],"struct":["Dialog","Response"]};
|
||||
76
cosmic/dialog/file_chooser/save/struct.Dialog.html
Normal file
76
cosmic/dialog/file_chooser/save/struct.Dialog.html
Normal file
File diff suppressed because one or more lines are too long
66
cosmic/dialog/file_chooser/save/struct.Response.html
Normal file
66
cosmic/dialog/file_chooser/save/struct.Response.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/dialog/file_chooser/sidebar-items.js
Normal file
1
cosmic/dialog/file_chooser/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Error"],"mod":["open","save"],"struct":["Choice","FileFilter"],"type":["DialogError"]};
|
||||
99
cosmic/dialog/file_chooser/struct.Choice.html
Normal file
99
cosmic/dialog/file_chooser/struct.Choice.html
Normal file
File diff suppressed because one or more lines are too long
93
cosmic/dialog/file_chooser/struct.FileFilter.html
Normal file
93
cosmic/dialog/file_chooser/struct.FileFilter.html
Normal file
File diff suppressed because one or more lines are too long
29
cosmic/dialog/file_chooser/type.DialogError.html
Normal file
29
cosmic/dialog/file_chooser/type.DialogError.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `DialogError` type in crate `cosmic`."><title>DialogError in cosmic::dialog::file_chooser - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Dialog<wbr>Error</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.IO" title="IO">IO</a></li><li><a href="#variant.InvalidAppID" title="InvalidAppID">InvalidAppID</a></li><li><a href="#variant.NoResponse" title="NoResponse">NoResponse</a></li><li><a href="#variant.NulTerminated" title="NulTerminated">NulTerminated</a></li><li><a href="#variant.ParseError" title="ParseError">ParseError</a></li><li><a href="#variant.Portal" title="Portal">Portal</a></li><li><a href="#variant.PortalNotFound" title="PortalNotFound">PortalNotFound</a></li><li><a href="#variant.RequiresVersion" title="RequiresVersion">RequiresVersion</a></li><li><a href="#variant.Response" title="Response">Response</a></li><li><a href="#variant.UnexpectedIcon" title="UnexpectedIcon">UnexpectedIcon</a></li><li><a href="#variant.Zbus" title="Zbus">Zbus</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>dialog::<wbr>file_<wbr>chooser</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">dialog</a>::<wbr><a href="index.html">file_chooser</a></div><h1>Type Alias <span class="type">DialogError</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/cosmic/dialog/file_chooser/mod.rs.html#143">Source</a> </span></div><pre class="rust item-decl"><code>pub type DialogError = Error;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>(crate features <code>xdg-portal</code> or <code>rfd</code>) and crate feature <code>xdg-portal</code></strong> only.</div></span><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>pub enum DialogError {
|
||||
Response(ResponseError),
|
||||
Portal(PortalError),
|
||||
Zbus(Error),
|
||||
NoResponse,
|
||||
ParseError(&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
|
||||
IO(<a class="struct" href="../../iced/daemon/program/graphics/futures/futures/io/struct.Error.html" title="struct cosmic::iced::daemon::program::graphics::futures::futures::io::Error">Error</a>),
|
||||
InvalidAppID,
|
||||
NulTerminated(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>),
|
||||
RequiresVersion(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
|
||||
PortalNotFound(OwnedInterfaceName),
|
||||
UnexpectedIcon,
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Response" class="variant"><a href="#variant.Response" class="anchor">§</a><h3 class="code-header">Response(ResponseError)</h3></section><div class="docblock"><p>The portal request didn’t succeed.</p>
|
||||
</div><section id="variant.Portal" class="variant"><a href="#variant.Portal" class="anchor">§</a><h3 class="code-header">Portal(PortalError)</h3></section><div class="docblock"><p>Something Failed on the portal request.</p>
|
||||
</div><section id="variant.Zbus" class="variant"><a href="#variant.Zbus" class="anchor">§</a><h3 class="code-header">Zbus(Error)</h3></section><div class="docblock"><p>A zbus::fdo specific error.</p>
|
||||
</div><section id="variant.NoResponse" class="variant"><a href="#variant.NoResponse" class="anchor">§</a><h3 class="code-header">NoResponse</h3></section><div class="docblock"><p>A signal returned no response.</p>
|
||||
</div><section id="variant.ParseError" class="variant"><a href="#variant.ParseError" class="anchor">§</a><h3 class="code-header">ParseError(&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</h3></section><div class="docblock"><p>Failed to parse a string into an enum variant</p>
|
||||
</div><section id="variant.IO" class="variant"><a href="#variant.IO" class="anchor">§</a><h3 class="code-header">IO(<a class="struct" href="../../iced/daemon/program/graphics/futures/futures/io/struct.Error.html" title="struct cosmic::iced::daemon::program::graphics::futures::futures::io::Error">Error</a>)</h3></section><div class="docblock"><p>Input/Output</p>
|
||||
</div><section id="variant.InvalidAppID" class="variant"><a href="#variant.InvalidAppID" class="anchor">§</a><h3 class="code-header">InvalidAppID</h3></section><div class="docblock"><p>Invalid AppId</p>
|
||||
<p>See <a href="https://developer.gnome.org/documentation/tutorials/application-id.html#rules-for-application-ids">https://developer.gnome.org/documentation/tutorials/application-id.html#rules-for-application-ids</a></p>
|
||||
</div><section id="variant.NulTerminated" class="variant"><a href="#variant.NulTerminated" class="anchor">§</a><h3 class="code-header">NulTerminated(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h3></section><div class="docblock"><p>An error indicating that an interior nul byte was found</p>
|
||||
</div><section id="variant.RequiresVersion" class="variant"><a href="#variant.RequiresVersion" class="anchor">§</a><h3 class="code-header">RequiresVersion(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</h3></section><div class="docblock"><p>Requires a newer interface version.</p>
|
||||
<p>The inner fields are the required version and the version advertised by
|
||||
the interface.</p>
|
||||
</div><section id="variant.PortalNotFound" class="variant"><a href="#variant.PortalNotFound" class="anchor">§</a><h3 class="code-header">PortalNotFound(OwnedInterfaceName)</h3></section><div class="docblock"><p>Returned when the portal wasn’t found. Either the user has no portals
|
||||
frontend installed or the frontend doesn’t support the used portal.</p>
|
||||
</div><section id="variant.UnexpectedIcon" class="variant"><a href="#variant.UnexpectedIcon" class="anchor">§</a><h3 class="code-header">UnexpectedIcon</h3></section><div class="docblock"><p>An error indicating that a Icon::Bytes was expected but wrong type was
|
||||
passed</p>
|
||||
</div></div><script src="../../../type.impl/ashpd/error/enum.Error.js" data-self-path="cosmic::dialog::file_chooser::DialogError" async></script></section></div></main></body></html>
|
||||
2
cosmic/dialog/index.html
Normal file
2
cosmic/dialog/index.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Create dialogs for retrieving user input."><title>cosmic::dialog - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module dialog</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><li><a href="#modules" title="Modules">Modules</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate cosmic</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">cosmic</a></div><h1>Module <span>dialog</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/cosmic/dialog/mod.rs.html#4-9">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>xdg-portal</code> or <code>rfd</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create dialogs for retrieving user input.</p>
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.ashpd"><code>pub use ashpd;</code><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="file_chooser/index.html" title="mod cosmic::dialog::file_chooser">file_<wbr>chooser</a></dt><dd>Dialogs for opening and save files.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/dialog/sidebar-items.js
Normal file
1
cosmic/dialog/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"mod":["file_chooser"]};
|
||||
Loading…
Add table
Add a link
Reference in a new issue