This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../cosmic/app/enum.Action.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../cosmic/app/enum.Action.html">../../../cosmic/app/enum.Action.html</a>...</p>
<script>location.replace("../../../cosmic/app/enum.Action.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,4 @@
<!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 `context_drawer` fn in crate `cosmic`."><title>context_drawer in cosmic::app::context_drawer - 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>app::<wbr>context_<wbr>drawer</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">app</a>::<wbr><a href="index.html">context_drawer</a></div><h1>Function <span class="fn">context_drawer</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/app/context_drawer.rs.html#26-38">Source</a> </span></div><pre class="rust item-decl"><code>pub fn context_drawer&lt;'a, Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static&gt;(
content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="type" href="../../type.Element.html" title="type cosmic::Element">Element</a>&lt;'a, Message&gt;&gt;,
on_close: Message,
) -&gt; <a class="struct" href="struct.ContextDrawer.html" title="struct cosmic::app::context_drawer::ContextDrawer">ContextDrawer</a>&lt;'a, Message&gt;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span></section></div></main></body></html>

View 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 `context_drawer` mod in crate `cosmic`."><title>cosmic::app::context_drawer - 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 context_<wbr>drawer</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>app</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">app</a></div><h1>Module <span>context_drawer</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/app/context_drawer.rs.html#4-78">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ContextDrawer.html" title="struct cosmic::app::context_drawer::ContextDrawer">Context<wbr>Drawer</a></dt></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.context_drawer.html" title="fn cosmic::app::context_drawer::context_drawer">context_<wbr>drawer</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["context_drawer"],"struct":["ContextDrawer"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View 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 `windowing_system` fn in crate `cosmic`."><title>windowing_system in cosmic::app::cosmic - 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>app::<wbr>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>::<wbr><a href="../index.html">app</a>::<wbr><a href="index.html">cosmic</a></div><h1>Function <span class="fn">windowing_system</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/app/cosmic.rs.html#48-50">Source</a> </span></div><pre class="rust item-decl"><code>pub fn windowing_system() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.WindowingSystem.html" title="enum cosmic::app::cosmic::WindowingSystem">WindowingSystem</a>&gt;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span></section></div></main></body></html>

View 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 `cosmic` mod in crate `cosmic`."><title>cosmic::app::cosmic - 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 cosmic</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="#enums" title="Enums">Enums</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>app</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">app</a></div><h1>Module <span>cosmic</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/app/cosmic.rs.html#4-1376">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Cosmic.html" title="struct cosmic::app::cosmic::Cosmic">Cosmic</a></dt></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.WindowingSystem.html" title="enum cosmic::app::cosmic::WindowingSystem">Windowing<wbr>System</a></dt></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.windowing_system.html" title="fn cosmic::app::cosmic::windowing_system">windowing_<wbr>system</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["WindowingSystem"],"fn":["windowing_system"],"struct":["Cosmic"]};

File diff suppressed because one or more lines are too long

128
cosmic/app/enum.Action.html Normal file

File diff suppressed because one or more lines are too long

4
cosmic/app/fn.run.html Normal file
View file

@ -0,0 +1,4 @@
<!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="Launch a COSMIC application with the given `Settings`."><title>run in cosmic::app - 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"><section id="rustdoc-toc"><h2 class="location"><a href="#">run</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>app</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">app</a></div><h1>Function <span class="fn">run</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/app/mod.rs.html#130-187">Source</a> </span></div><pre class="rust item-decl"><code>pub fn run&lt;App: <a class="trait" href="../trait.Application.html" title="trait cosmic::Application">Application</a>&gt;(settings: <a class="struct" href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings">Settings</a>, flags: App::<a class="associatedtype" href="../trait.Application.html#associatedtype.Flags" title="type cosmic::Application::Flags">Flags</a>) -&gt; <a class="type" href="../iced/type.Result.html" title="type cosmic::iced::Result">Result</a></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Launch a COSMIC application with the given <a href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings"><code>Settings</code></a>.</p>
<h2 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h2>
<p>Returns error on application failure.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!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="Launch a COSMIC application with the given `Settings`. If the application is already running, the arguments will be passed to the running instance."><title>run_single_instance in cosmic::app - 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"><section id="rustdoc-toc"><h2 class="location"><a href="#">run_<wbr>single_<wbr>instance</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>app</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">app</a></div><h1>Function <span class="fn">run_single_instance</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/app/mod.rs.html#195-305">Source</a> </span></div><pre class="rust item-decl"><code>pub fn run_single_instance&lt;App: <a class="trait" href="../trait.Application.html" title="trait cosmic::Application">Application</a>&gt;(
settings: <a class="struct" href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings">Settings</a>,
flags: App::<a class="associatedtype" href="../trait.Application.html#associatedtype.Flags" title="type cosmic::Application::Flags">Flags</a>,
) -&gt; <a class="type" href="../iced/type.Result.html" title="type cosmic::iced::Result">Result</a><div class="where">where
App::<a class="associatedtype" href="../trait.Application.html#associatedtype.Flags" title="type cosmic::Application::Flags">Flags</a>: <a class="trait" href="trait.CosmicFlags.html" title="trait cosmic::app::CosmicFlags">CosmicFlags</a>,
App::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</div></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>winit</code> and <code>single-instance</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Launch a COSMIC application with the given <a href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings"><code>Settings</code></a>.
If the application is already running, the arguments will be passed to the
running instance.</p>
<h2 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h2>
<p>Returns error on application failure.</p>
</div></details></section></div></main></body></html>

6
cosmic/app/index.html Normal file
View file

@ -0,0 +1,6 @@
<!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="Build interactive cross-platform COSMIC applications."><title>cosmic::app - 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 app</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><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</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>app</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/app/mod.rs.html#4-906">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Build interactive cross-platform COSMIC applications.</p>
<p>Check out our <a href="https://github.com/pop-os/libcosmic/tree/master/examples/application">application</a>
example in our repository.</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.ContextDrawer"><code>pub use context_drawer::<a class="struct" href="context_drawer/struct.ContextDrawer.html" title="struct cosmic::app::context_drawer::ContextDrawer">ContextDrawer</a>;</code></dt><dt id="reexport.context_drawer"><code>pub use context_drawer::<a class="fn" href="context_drawer/fn.context_drawer.html" title="fn cosmic::app::context_drawer::context_drawer">context_drawer</a>;</code></dt><dt id="reexport.Core"><code>pub use crate::<a class="struct" href="../struct.Core.html" title="struct cosmic::Core">Core</a>;</code></dt><dt id="reexport.Settings"><code>pub use settings::<a class="struct" href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings">Settings</a>;</code></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="context_drawer/index.html" title="mod cosmic::app::context_drawer">context_<wbr>drawer</a></dt><dt><a class="mod" href="cosmic/index.html" title="mod cosmic::app::cosmic">cosmic</a></dt><dt><a class="mod" href="settings/index.html" title="mod cosmic::app::settings">settings</a></dt><dd>Configure a new COSMIC application.</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.Action.html" title="enum cosmic::app::Action">Action</a></dt><dd>A message managed internally by COSMIC.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Application.html" title="trait cosmic::app::Application">Application</a></dt><dd>An interactive cross-platform COSMIC application.</dd><dt><a class="trait" href="trait.ApplicationExt.html" title="trait cosmic::app::ApplicationExt">Application<wbr>Ext</a></dt><dd>Methods automatically derived for all types implementing <a href="../trait.Application.html" title="trait cosmic::Application"><code>Application</code></a>.</dd><dt><a class="trait" href="trait.CosmicFlags.html" title="trait cosmic::app::CosmicFlags">Cosmic<wbr>Flags</a></dt></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.run.html" title="fn cosmic::app::run">run</a></dt><dd>Launch a COSMIC application with the given <a href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings"><code>Settings</code></a>.</dd><dt><a class="fn" href="fn.run_single_instance.html" title="fn cosmic::app::run_single_instance">run_<wbr>single_<wbr>instance</a><wbr><span class="stab portability" title="Available on crate feature `single-instance` only"><code>single-instance</code></span></dt><dd>Launch a COSMIC application with the given <a href="settings/struct.Settings.html" title="struct cosmic::app::settings::Settings"><code>Settings</code></a>.
If the application is already running, the arguments will be passed to the
running instance.</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.Task.html" title="type cosmic::app::Task">Task</a></dt></dl></section></div></main></body></html>

View 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="Configure a new COSMIC application."><title>cosmic::app::settings - 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 settings</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>app</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">app</a></div><h1>Module <span>settings</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/app/settings.rs.html#4-105">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Configure a new COSMIC application.</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.Settings.html" title="struct cosmic::app::settings::Settings">Settings</a></dt><dd>Configure a new COSMIC application.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Settings"]};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Action"],"fn":["run","run_single_instance"],"mod":["context_drawer","cosmic","settings"],"trait":["Application","ApplicationExt","CosmicFlags"],"type":["Task"]};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,36 @@
<!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="Methods automatically derived for all types implementing `Application`."><title>ApplicationExt in cosmic::app - 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 trait"><!--[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="#">Application<wbr>Ext</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.drag" title="drag">drag</a></li><li><a href="#tymethod.maximize" title="maximize">maximize</a></li><li><a href="#tymethod.minimize" title="minimize">minimize</a></li><li><a href="#tymethod.set_window_title" title="set_window_title">set_window_title</a></li><li><a href="#tymethod.title" title="title">title</a></li><li><a href="#tymethod.view_main" title="view_main">view_main</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.set_header_title" title="set_header_title">set_header_title</a></li><li><a href="#method.set_show_context" title="set_show_context">set_show_context</a></li><li><a href="#method.watch_config" title="watch_config">watch_config</a></li><li><a href="#method.watch_state" title="watch_state">watch_state</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>app</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">app</a></div><h1>Trait <span class="trait">ApplicationExt</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/app/mod.rs.html#512-564">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ApplicationExt: <a class="trait" href="../trait.Application.html" title="trait cosmic::Application">Application</a> {
// Required methods
fn <a href="#tymethod.drag" class="fn">drag</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.maximize" class="fn">maximize</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.minimize" class="fn">minimize</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.title" class="fn">title</a>(&amp;self, id: <a class="struct" href="../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.set_window_title" class="fn">set_window_title</a>(&amp;mut self, title: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, id: <a class="struct" href="../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.view_main" class="fn">view_main</a>(&amp;self) -&gt; <a class="type" href="../type.Element.html" title="type cosmic::Element">Element</a>&lt;'_, <a class="enum" href="../action/enum.Action.html" title="enum cosmic::action::Action">Action</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;&gt;;
// Provided methods
fn <a href="#method.set_show_context" class="fn">set_show_context</a>(&amp;mut self, show: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.set_header_title" class="fn">set_header_title</a>(&amp;mut self, title: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.watch_config" class="fn">watch_config</a>&lt;T: <a class="trait" href="../cosmic_config/trait.CosmicConfigEntry.html" title="trait cosmic::cosmic_config::CosmicConfigEntry">CosmicConfigEntry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt;(
&amp;self,
id: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
) -&gt; <a class="struct" href="../iced/struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;<a class="struct" href="../cosmic_config/struct.Update.html" title="struct cosmic::cosmic_config::Update">Update</a>&lt;T&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.watch_state" class="fn">watch_state</a>&lt;T: <a class="trait" href="../cosmic_config/trait.CosmicConfigEntry.html" title="trait cosmic::cosmic_config::CosmicConfigEntry">CosmicConfigEntry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt;(
&amp;self,
id: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
) -&gt; <a class="struct" href="../iced/struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;<a class="struct" href="../cosmic_config/struct.Update.html" title="struct cosmic::cosmic_config::Update">Update</a>&lt;T&gt;&gt; { ... }
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Methods automatically derived for all types implementing <a href="../trait.Application.html" title="trait cosmic::Application"><code>Application</code></a>.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.drag" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#514">Source</a><h4 class="code-header">fn <a href="#tymethod.drag" class="fn">drag</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;</h4></section></summary><div class="docblock"><p>Initiates a window drag.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.maximize" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#517">Source</a><h4 class="code-header">fn <a href="#tymethod.maximize" class="fn">maximize</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;</h4></section></summary><div class="docblock"><p>Maximizes the window.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.minimize" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#520">Source</a><h4 class="code-header">fn <a href="#tymethod.minimize" class="fn">minimize</a>(&amp;mut self) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;</h4></section></summary><div class="docblock"><p>Minimizes the window.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.title" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#528">Source</a><h4 class="code-header">fn <a href="#tymethod.title" class="fn">title</a>(&amp;self, id: <a class="struct" href="../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>multi-window</code></strong> only.</div></span></summary><div class="docblock"><p>Get the title of a window.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.set_window_title" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#546">Source</a><h4 class="code-header">fn <a href="#tymethod.set_window_title" class="fn">set_window_title</a>(&amp;mut self, title: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, id: <a class="struct" href="../iced/window/struct.Id.html" title="struct cosmic::iced::window::Id">Id</a>) -&gt; <a class="type" href="type.Task.html" title="type cosmic::app::Task">Task</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>multi-window</code></strong> only.</div></span></summary><div class="docblock"><p>Set the title of a window.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.view_main" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#549">Source</a><h4 class="code-header">fn <a href="#tymethod.view_main" class="fn">view_main</a>(&amp;self) -&gt; <a class="type" href="../type.Element.html" title="type cosmic::Element">Element</a>&lt;'_, <a class="enum" href="../action/enum.Action.html" title="enum cosmic::action::Action">Action</a>&lt;Self::<a class="associatedtype" href="../trait.Application.html#associatedtype.Message" title="type cosmic::Application::Message">Message</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>View template for the main window.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.set_show_context" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#531-533">Source</a><h4 class="code-header">fn <a href="#method.set_show_context" class="fn">set_show_context</a>(&amp;mut self, show: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Set the context drawer visibility.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_header_title" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#536-538">Source</a><h4 class="code-header">fn <a href="#method.set_header_title" class="fn">set_header_title</a>(&amp;mut self, title: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h4></section></summary><div class="docblock"><p>Set the header bar title.</p>
</div></details><section id="method.watch_config" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#551-556">Source</a><h4 class="code-header">fn <a href="#method.watch_config" class="fn">watch_config</a>&lt;T: <a class="trait" href="../cosmic_config/trait.CosmicConfigEntry.html" title="trait cosmic::cosmic_config::CosmicConfigEntry">CosmicConfigEntry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt;(
&amp;self,
id: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
) -&gt; <a class="struct" href="../iced/struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;<a class="struct" href="../cosmic_config/struct.Update.html" title="struct cosmic::cosmic_config::Update">Update</a>&lt;T&gt;&gt;</h4></section><section id="method.watch_state" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#558-563">Source</a><h4 class="code-header">fn <a href="#method.watch_state" class="fn">watch_state</a>&lt;T: <a class="trait" href="../cosmic_config/trait.CosmicConfigEntry.html" title="trait cosmic::cosmic_config::CosmicConfigEntry">CosmicConfigEntry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt;(
&amp;self,
id: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
) -&gt; <a class="struct" href="../iced/struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a>&lt;<a class="struct" href="../cosmic_config/struct.Update.html" title="struct cosmic::cosmic_config::Update">Update</a>&lt;T&gt;&gt;</h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ApplicationExt-for-App" class="impl"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#566-885">Source</a><a href="#impl-ApplicationExt-for-App" class="anchor">§</a><h3 class="code-header">impl&lt;App: <a class="trait" href="../trait.Application.html" title="trait cosmic::Application">Application</a>&gt; <a class="trait" href="../trait.ApplicationExt.html" title="trait cosmic::ApplicationExt">ApplicationExt</a> for App</h3></section></div><script src="../../trait.impl/cosmic/app/trait.ApplicationExt.js" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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 `CosmicFlags` trait in crate `cosmic`."><title>CosmicFlags in cosmic::app - 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 trait"><!--[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="#">Cosmic<wbr>Flags</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Args" title="Args">Args</a></li><li><a href="#associatedtype.SubCommand" title="SubCommand">SubCommand</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.action" title="action">action</a></li><li><a href="#method.args" title="args">args</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>app</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">app</a></div><h1>Trait <span class="trait">CosmicFlags</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/app/mod.rs.html#307-319">Source</a> </span></div><pre class="rust item-decl"><code>pub trait CosmicFlags {
type <a href="#associatedtype.SubCommand" class="associatedtype">SubCommand</a>: <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/trait.ToString.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::ToString">ToString</a> + <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static;
type <a href="#associatedtype.Args" class="associatedtype">Args</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;&gt; + <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static;
// Provided methods
fn <a href="#method.action" class="fn">action</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="associatedtype" href="trait.CosmicFlags.html#associatedtype.SubCommand" title="type cosmic::app::CosmicFlags::SubCommand">SubCommand</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.args" class="fn">args</a>(&amp;self) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; { ... }
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</code></strong> only.</div></span><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.SubCommand" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#308">Source</a><h4 class="code-header">type <a href="#associatedtype.SubCommand" class="associatedtype">SubCommand</a>: <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/trait.ToString.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::ToString">ToString</a> + <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static</h4></section><section id="associatedtype.Args" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#309">Source</a><h4 class="code-header">type <a href="#associatedtype.Args" class="associatedtype">Args</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>&gt;&gt; + <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static</h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.action" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#311-313">Source</a><h4 class="code-header">fn <a href="#method.action" class="fn">action</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;Self::<a class="associatedtype" href="trait.CosmicFlags.html#associatedtype.SubCommand" title="type cosmic::app::CosmicFlags::SubCommand">SubCommand</a>&gt;</h4></section><section id="method.args" class="method"><a class="src rightside" href="../../src/cosmic/app/mod.rs.html#316-318">Source</a><h4 class="code-header">fn <a href="#method.args" class="fn">args</a>(&amp;self) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/cosmic/app/trait.CosmicFlags.js" async></script></section></div></main></body></html>

View 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 `Task` type in crate `cosmic`."><title>Task in cosmic::app - 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="#">Task</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>app</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">app</a></div><h1>Type Alias <span class="type">Task</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/app/mod.rs.html#18">Source</a> </span></div><pre class="rust item-decl"><code>pub type Task&lt;M&gt; = <a class="struct" href="../struct.Task.html" title="struct cosmic::Task">Task</a>&lt;<a class="enum" href="../action/enum.Action.html" title="enum cosmic::action::Action">Action</a>&lt;M&gt;&gt;;</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>winit</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 struct Task&lt;M&gt; { <span class="comment">/* private fields */</span> }</code></pre><script src="../../type.impl/cosmic/struct.Task.js" data-self-path="cosmic::app::Task" async></script></section></div></main></body></html>