deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
|
|
@ -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 `data_device` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager::data_device - 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 data_<wbr>device</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="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a></div><h1>Module <span>data_device</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</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.DataDevice.html" title="struct cosmic::cctk::sctk::data_device_manager::data_device::DataDevice">Data<wbr>Device</a></dt><dt><a class="struct" href="struct.DataDeviceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_device::DataDeviceData">Data<wbr>Device<wbr>Data</a></dt></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.DataDeviceHandler.html" title="trait cosmic::cctk::sctk::data_device_manager::data_device::DataDeviceHandler">Data<wbr>Device<wbr>Handler</a></dt><dd>Handler trait for DataDevice events.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["DataDevice","DataDeviceData"],"trait":["DataDeviceHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,78 @@
|
|||
<!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="Handler trait for DataDevice events."><title>DataDeviceHandler in cosmic::cctk::sctk::data_device_manager::data_device - 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="#">Data<wbr>Device<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.drop_performed" title="drop_performed">drop_performed</a></li><li><a href="#tymethod.enter" title="enter">enter</a></li><li><a href="#tymethod.leave" title="leave">leave</a></li><li><a href="#tymethod.motion" title="motion">motion</a></li><li><a href="#tymethod.selection" title="selection">selection</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>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>device</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_device</a></div><h1>Trait <span class="trait">DataDeviceHandler</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait DataDeviceHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.enter" class="fn">enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
wl_surface: &<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.leave" class="fn">leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.motion" class="fn">motion</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.selection" class="fn">selection</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.drop_performed" class="fn">drop_performed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataDevice events.</p>
|
||||
<p>The functions defined in this trait are called as DataDevice events are received from the compositor.</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.enter" class="method"><h4 class="code-header">fn <a href="#tymethod.enter" class="fn">enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
wl_surface: &<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The data device pointer has entered a surface at the provided location</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leave" class="method"><h4 class="code-header">fn <a href="#tymethod.leave" class="fn">leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The drag and drop pointer has left the surface and the session ends.
|
||||
The offer will be destroyed unless it was previously dropped.
|
||||
In the case of a dropped offer, the client must destroy it manually after it is finished.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.motion" class="method"><h4 class="code-header">fn <a href="#tymethod.motion" class="fn">motion</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Drag and Drop motion.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.selection" class="method"><h4 class="code-header">fn <a href="#tymethod.selection" class="fn">selection</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Advertises a new selection.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.drop_performed" class="method"><h4 class="code-header">fn <a href="#tymethod.drop_performed" class="fn">drop_performed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Drop performed.
|
||||
After the next data offer action event, data may be able to be received, unless the action is “ask”.</p>
|
||||
</div></details></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"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.js" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,14 @@
|
|||
<!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="Request to receive the data of a given mime type."><title>receive in cosmic::cctk::sctk::data_device_manager::data_offer - 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>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Function <span class="fn">receive</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn receive(
|
||||
offer: &<a class="struct" href="../../reexports/client/protocol/wl_data_offer/struct.WlDataOffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_offer::WlDataOffer">WlDataOffer</a>,
|
||||
mime_type: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</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.ReadPipe.html" title="struct cosmic::cctk::sctk::data_device_manager::ReadPipe">ReadPipe</a>, <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>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Request to receive the data of a given mime type.</p>
|
||||
<p>You can do this several times, as a reaction to motion of
|
||||
the dnd cursor, or to inspect the data in order to choose your
|
||||
response.</p>
|
||||
<p>Note that you should <em>not</em> read the contents right away in a
|
||||
blocking way, as you may deadlock your application doing so.
|
||||
At least make sure you flush your events to the server before
|
||||
doing so.</p>
|
||||
<p>Fails if too many file descriptors were already open and a pipe
|
||||
could not be created.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
|
|
@ -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="Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it."><title>receive_to_fd in cosmic::cctk::sctk::data_device_manager::data_offer - 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>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Function <span class="fn">receive_to_fd</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn receive_to_fd(offer: &<a class="struct" href="../../reexports/client/protocol/wl_data_offer/struct.WlDataOffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_offer::WlDataOffer">WlDataOffer</a>, mime_type: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, writefd: <a class="struct" href="https://doc.rust-lang.org/nightly/std/os/fd/owned/struct.OwnedFd.html" title="struct std::os::fd::owned::OwnedFd">OwnedFd</a>)</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.</p>
|
||||
<p>You can do this several times, as a reaction to motion of
|
||||
the dnd cursor, or to inspect the data in order to choose your
|
||||
response.</p>
|
||||
<p>Note that you should <em>not</em> read the contents right away in a
|
||||
blocking way, as you may deadlock your application doing so.
|
||||
At least make sure you flush your events to the server before
|
||||
doing so.</p>
|
||||
<p>The provided file destructor must be a valid FD for writing, and will be closed
|
||||
once the contents are written.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["DataOfferError"],"fn":["receive","receive_to_fd"],"struct":["DataDeviceOfferInner","DataOfferData","DragOffer","SelectionOffer"],"trait":["DataOfferHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,43 @@
|
|||
<!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="Handler trait for DataOffer events."><title>DataOfferHandler in cosmic::cctk::sctk::data_device_manager::data_offer - 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="#">Data<wbr>Offer<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.selected_action" title="selected_action">selected_action</a></li><li><a href="#tymethod.source_actions" title="source_actions">source_actions</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>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Trait <span class="trait">DataOfferHandler</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait DataOfferHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.source_actions" class="fn">source_actions</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.selected_action" class="fn">selected_action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataOffer events.</p>
|
||||
<p>The functions defined in this trait are called as DataOffer events are received from the compositor.</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.source_actions" class="method"><h4 class="code-header">fn <a href="#tymethod.source_actions" class="fn">source_actions</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Called to advertise the available DnD Actions as set by the source.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.selected_action" class="method"><h4 class="code-header">fn <a href="#tymethod.selected_action" class="fn">selected_action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Called to advertise the action selected by the compositor after matching
|
||||
the source/destination side actions. Only one action or none will be
|
||||
selected in the actions sent by the compositor. This may be called
|
||||
multiple times during a DnD operation. The most recent DndAction is the
|
||||
only valid one.</p>
|
||||
<p>At the time of a <code>drop</code> event on the data device, this action must be
|
||||
used except in the case of an ask action. In the case that the last
|
||||
action received is <code>ask</code>, the destination asks the user for their
|
||||
preference, then calls set_actions & accept each one last time. Finally,
|
||||
the destination may then request data to be sent and finishing the data
|
||||
offer</p>
|
||||
</div></details></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"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.js" async></script></section></div></main></body></html>
|
||||
|
|
@ -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 `data_source` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager::data_source - 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 data_<wbr>source</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="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a></div><h1>Module <span>data_source</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</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.CopyPasteSource.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::CopyPasteSource">Copy<wbr>Paste<wbr>Source</a></dt><dt><a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">Data<wbr>Source<wbr>Data</a></dt><dt><a class="struct" href="struct.DragSource.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DragSource">Drag<wbr>Source</a></dt></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.DataSourceDataExt.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceDataExt">Data<wbr>Source<wbr>Data<wbr>Ext</a></dt><dt><a class="trait" href="trait.DataSourceHandler.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceHandler">Data<wbr>Source<wbr>Handler</a></dt><dd>Handler trait for DataSource events.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["CopyPasteSource","DataSourceData","DragSource"],"trait":["DataSourceDataExt","DataSourceHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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 `DataSourceDataExt` trait in crate `cosmic`."><title>DataSourceDataExt in cosmic::cctk::sctk::data_device_manager::data_source - 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="#">Data<wbr>Source<wbr>Data<wbr>Ext</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.data_source_data" title="data_source_data">data_source_data</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>source</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_source</a></div><h1>Trait <span class="trait">DataSourceDataExt</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait DataSourceDataExt: <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> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.data_source_data" class="fn">data_source_data</a>(&self) -> &<a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.data_source_data" class="method"><h4 class="code-header">fn <a href="#tymethod.data_source_data" class="fn">data_source_data</a>(&self) -> &<a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a></h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-DataSourceDataExt-for-DataSourceData" class="impl"><a href="#impl-DataSourceDataExt-for-DataSourceData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.DataSourceDataExt.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceDataExt">DataSourceDataExt</a> for <a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a></h3></section></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.js" data-ignore-extern-crates="smithay_client_toolkit" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
<!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="Handler trait for DataSource events."><title>DataSourceHandler in cosmic::cctk::sctk::data_device_manager::data_source - 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="#">Data<wbr>Source<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.accept_mime" title="accept_mime">accept_mime</a></li><li><a href="#tymethod.action" title="action">action</a></li><li><a href="#tymethod.cancelled" title="cancelled">cancelled</a></li><li><a href="#tymethod.dnd_dropped" title="dnd_dropped">dnd_dropped</a></li><li><a href="#tymethod.dnd_finished" title="dnd_finished">dnd_finished</a></li><li><a href="#tymethod.send_request" title="send_request">send_request</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>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>source</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_source</a></div><h1>Trait <span class="trait">DataSourceHandler</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait DataSourceHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.accept_mime" class="fn">accept_mime</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../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="#tymethod.send_request" class="fn">send_request</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
|
||||
fd: <a class="struct" href="../struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">WritePipe</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.cancelled" class="fn">cancelled</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dnd_dropped" class="fn">dnd_dropped</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dnd_finished" class="fn">dnd_finished</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.action" class="fn">action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
action: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataSource events.</p>
|
||||
<p>The functions defined in this trait are called as DataSource events are received from the compositor.</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.accept_mime" class="method"><h4 class="code-header">fn <a href="#tymethod.accept_mime" class="fn">accept_mime</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../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>This may be called multiple times, once for each accepted mime type from the destination, if any.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.send_request" class="method"><h4 class="code-header">fn <a href="#tymethod.send_request" class="fn">send_request</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
|
||||
fd: <a class="struct" href="../struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">WritePipe</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The client has requested the data for this source to be sent.
|
||||
Send the data, then close the fd.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.cancelled" class="method"><h4 class="code-header">fn <a href="#tymethod.cancelled" class="fn">cancelled</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The data source is no longer valid
|
||||
Cleanup & destroy this resource</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dnd_dropped" class="method"><h4 class="code-header">fn <a href="#tymethod.dnd_dropped" class="fn">dnd_dropped</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>A drop was performed.
|
||||
The data source will be used and should not be destroyed yet</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dnd_finished" class="method"><h4 class="code-header">fn <a href="#tymethod.dnd_finished" class="fn">dnd_finished</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The drag and drop finished.
|
||||
The data source may be destroyed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.action" class="method"><h4 class="code-header">fn <a href="#tymethod.action" class="fn">action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
action: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>An action was selected by the compositor.</p>
|
||||
</div></details></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"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.js" async></script></section></div></main></body></html>
|
||||
3
cosmic/cctk/sctk/data_device_manager/index.html
Normal file
3
cosmic/cctk/sctk/data_device_manager/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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 `data_device_manager` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager - 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 data_<wbr>device_<wbr>manager</a></h2><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></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>data_device_manager</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="data_device/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_device">data_<wbr>device</a></dt><dt><a class="mod" href="data_offer/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_offer">data_<wbr>offer</a></dt><dt><a class="mod" href="data_source/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_source">data_<wbr>source</a></dt></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.DataDeviceManagerState.html" title="struct cosmic::cctk::sctk::data_device_manager::DataDeviceManagerState">Data<wbr>Device<wbr>Manager<wbr>State</a></dt><dt><a class="struct" href="struct.ReadPipe.html" title="struct cosmic::cctk::sctk::data_device_manager::ReadPipe">Read<wbr>Pipe</a></dt><dd>If the <code>calloop</code> cargo feature is enabled, this can be used
|
||||
as an <code>EventSource</code> in a calloop event loop.</dd><dt><a class="struct" href="struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">Write<wbr>Pipe</a></dt><dd>If the <code>calloop</code> cargo feature is enabled, this can be used
|
||||
as an <code>EventSource</code> in a calloop event loop.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/data_device_manager/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/data_device_manager/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"mod":["data_device","data_offer","data_source"],"struct":["DataDeviceManagerState","ReadPipe","WritePipe"]};
|
||||
File diff suppressed because one or more lines are too long
117
cosmic/cctk/sctk/data_device_manager/struct.ReadPipe.html
Normal file
117
cosmic/cctk/sctk/data_device_manager/struct.ReadPipe.html
Normal file
File diff suppressed because one or more lines are too long
121
cosmic/cctk/sctk/data_device_manager/struct.WritePipe.html
Normal file
121
cosmic/cctk/sctk/data_device_manager/struct.WritePipe.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue