Files
phy/as_raw_xcb_connection/trait.AsRawXcbConnection.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

11 lines
15 KiB
HTML

<!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="A trait to extract a raw `xcb_connection_t` from an object."><title>AsRawXcbConnection in as_raw_xcb_connection - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="as_raw_xcb_connection" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.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="../as_raw_xcb_connection/index.html">as_<wbr>raw_<wbr>xcb_<wbr>connection</a><span class="version">1.0.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">AsRaw<wbr>XcbConnection</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#safety" title="Safety">Safety</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.as_raw_xcb_connection" title="as_raw_xcb_connection">as_raw_xcb_connection</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-AsRawXcbConnection-for-%26T" title="&#38;T">&#38;T</a></li><li><a href="#impl-AsRawXcbConnection-for-%26mut+T" title="&#38;mut T">&#38;mut T</a></li><li><a href="#impl-AsRawXcbConnection-for-Arc%3CT%3E" title="Arc&#60;T&#62;">Arc&#60;T&#62;</a></li><li><a href="#impl-AsRawXcbConnection-for-Box%3CT%3E" title="Box&#60;T&#62;">Box&#60;T&#62;</a></li><li><a href="#impl-AsRawXcbConnection-for-Cow%3C'_,+T%3E" title="Cow&#60;&#39;_, T&#62;">Cow&#60;&#39;_, T&#62;</a></li><li><a href="#impl-AsRawXcbConnection-for-Rc%3CT%3E" title="Rc&#60;T&#62;">Rc&#60;T&#62;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate as_<wbr>raw_<wbr>xcb_<wbr>connection</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">as_raw_xcb_connection</a></span><h1>Trait <span class="trait">AsRawXcbConnection</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/as_raw_xcb_connection/lib.rs.html#37-40">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait AsRawXcbConnection {
// Required method
fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait to extract a raw <code>xcb_connection_t</code> from an object.</p>
<h2 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h2>
<p>This trait is unsafe. Implementations must provide a valid connection pointer that can be used
with libxcb C functions. This pointer must be valid for as long as the object on which this
trait is implemented. This means that the connection cannot be deallocated while the object is
still in use.</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.as_raw_xcb_connection" class="method"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#39">Source</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></summary><div class="docblock"><p>Get a raw xcb connection pointer from this object.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-Cow%3C'_,+T%3E" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#78-84">Source</a><a href="#impl-AsRawXcbConnection-for-Cow%3C'_,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="enum" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'_, T&gt;</h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#81-83">Source</a><a href="#method.as_raw_xcb_connection" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-%26T" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#44-48">Source</a><a href="#impl-AsRawXcbConnection-for-%26T" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;T</a></h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection-1" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#45-47">Source</a><a href="#method.as_raw_xcb_connection-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-%26mut+T" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#50-54">Source</a><a href="#impl-AsRawXcbConnection-for-%26mut+T" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.reference.html">&amp;mut T</a></h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection-2" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#51-53">Source</a><a href="#method.as_raw_xcb_connection-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#57-61">Source</a><a href="#impl-AsRawXcbConnection-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection-3" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#58-60">Source</a><a href="#method.as_raw_xcb_connection-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-Rc%3CT%3E" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#64-68">Source</a><a href="#impl-AsRawXcbConnection-for-Rc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection-4" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#65-67">Source</a><a href="#method.as_raw_xcb_connection-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsRawXcbConnection-for-Arc%3CT%3E" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#71-75">Source</a><a href="#impl-AsRawXcbConnection-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.as_raw_xcb_connection-5" class="method trait-impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#72-74">Source</a><a href="#method.as_raw_xcb_connection-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_raw_xcb_connection" class="fn">as_raw_xcb_connection</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="enum" href="enum.xcb_connection_t.html" title="enum as_raw_xcb_connection::xcb_connection_t">xcb_connection_t</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AsRawXcbConnection-for-ValidConnection" class="impl"><a class="src rightside" href="../src/as_raw_xcb_connection/lib.rs.html#105-109">Source</a><a href="#impl-AsRawXcbConnection-for-ValidConnection" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AsRawXcbConnection.html" title="trait as_raw_xcb_connection::AsRawXcbConnection">AsRawXcbConnection</a> for <a class="struct" href="struct.ValidConnection.html" title="struct as_raw_xcb_connection::ValidConnection">ValidConnection</a></h3></section></div><script src="../trait.impl/as_raw_xcb_connection/trait.AsRawXcbConnection.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>