mirror of
https://github.com/neogeek23/rusty_snek_gaem.git
synced 2026-02-04 19:18:44 +00:00
91 lines
28 KiB
HTML
91 lines
28 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="API documentation for the Rust `Display` struct in crate `wayland_client`."><meta name="keywords" content="rust, rustlang, rust-lang, Display"><title>wayland_client::Display - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Display</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.from_external_display">from_external_display</a><a href="#method.get_display_ptr">get_display_ptr</a><a href="#method.connect_to_env">connect_to_env</a><a href="#method.connect_to_name">connect_to_name</a><a href="#method.flush">flush</a><a href="#method.create_event_queue">create_event_queue</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref<Target=Proxy<WlDisplay>></a><div class="sidebar-links"><a href="#method.send">send</a><a href="#method.is_alive">is_alive</a><a href="#method.version">version</a><a href="#method.set_user_data">set_user_data</a><a href="#method.get_user_data">get_user_data</a><a href="#method.is_external">is_external</a><a href="#method.equals">equals</a><a href="#method.c_ptr">c_ptr</a><a href="#method.make_wrapper">make_wrapper</a><a href="#method.child">child</a><a href="#method.is_implemented_with">is_implemented_with</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Deref">Deref</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='index.html'>wayland_client</a></p><script>window.sidebarCurrent = {name: 'Display', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>wayland_client</a>::<wbr><a class="struct" href=''>Display</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/wayland_client/display.rs.html#74-76' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Display { /* fields omitted */ }</pre></div><div class='docblock'><p>A connection to a wayland server</p>
|
||
<p>This object both represent the connection to the server, and as such
|
||
must be kept alive as long as you are connected, and contains the
|
||
primary <code>WlDisplay</code> wayland object, from which you can create all
|
||
your need objects. The inner <code>Proxy<WlDisplay></code> can be accessed via
|
||
<code>Deref</code>.</p>
|
||
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#78-230' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from_external_display' class="method"><span id='from_external_display.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub unsafe fn <a href='#method.from_external_display' class='fnname'>from_external_display</a>(<br> display_ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../wayland_client/sys/client/enum.wl_display.html" title="enum wayland_client::sys::client::wl_display">wl_display</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a>, <a class="struct" href="../wayland_client/struct.EventQueue.html" title="struct wayland_client::EventQueue">EventQueue</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#110-129' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create a Display and Event Queue from an external display</p>
|
||
<p>This allows you to interface with an already-existing wayland connection,
|
||
for example provided by a GUI toolkit.</p>
|
||
<p>To avoid interferences with the owner of the connection, wayland-client will
|
||
create a new event queue and register a wrapper of the <code>wl_display</code> to this queue,
|
||
then provide them to you. You can then use them as if they came from a direct
|
||
wayland connection.</p>
|
||
<p>Note that if you need to retrieve the actual <code>wl_display</code> back (rather than its wrapper),
|
||
you must use the <code>get_display_ptr()</code> method.</p>
|
||
</div><h4 id='method.get_display_ptr' class="method"><span id='get_display_ptr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.get_display_ptr' class='fnname'>get_display_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../wayland_client/sys/client/enum.wl_display.html" title="enum wayland_client::sys::client::wl_display">wl_display</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#139-141' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Retrieve the <code>wl_display</code> pointer</p>
|
||
<p>If this <code>Display</code> was created from an external <code>wl_display</code>, its <code>c_ptr()</code> method will
|
||
return a wrapper to the actual display. While this is perfectly good as a <code>wl_proxy</code>
|
||
pointer, to send requests, this is not the actual <code>wl_display</code> and cannot be used as such.</p>
|
||
<p>This method will give you the <code>wl_display</code>.</p>
|
||
</div><h4 id='method.connect_to_env' class="method"><span id='connect_to_env.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.connect_to_env' class='fnname'>connect_to_env</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a>, <a class="struct" href="../wayland_client/struct.EventQueue.html" title="struct wayland_client::EventQueue">EventQueue</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="enum" href="../wayland_client/enum.ConnectError.html" title="enum wayland_client::ConnectError">ConnectError</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#152-170' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Attempt to connect to a wayland server using the contents of the environment variables</p>
|
||
<p>If the <code>WAYLAND_DISPLAY</code> variable is set, it will try to connect to the socket it points
|
||
to. Otherwise, it will default to <code>wayland-0</code>.</p>
|
||
<p>On success, you are given the <code>Display</code> object as well as the main <code>EventQueue</code> hosting
|
||
the <code>WlDisplay</code> wayland object.</p>
|
||
<p>This requires the <code>XDG_RUNTIME_DIR</code> variable to be properly set.</p>
|
||
</div><h4 id='method.connect_to_name' class="method"><span id='connect_to_name.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.connect_to_name' class='fnname'>connect_to_name</a><S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>>>(<br> name: S<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a>, <a class="struct" href="../wayland_client/struct.EventQueue.html" title="struct wayland_client::EventQueue">EventQueue</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="enum" href="../wayland_client/enum.ConnectError.html" title="enum wayland_client::ConnectError">ConnectError</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#178-197' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Attempt to connect to a wayland server socket with given name</p>
|
||
<p>On success, you are given the <code>Display</code> object as well as the main <code>EventQueue</code> hosting
|
||
the <code>WlDisplay</code> wayland object.</p>
|
||
<p>This requires the <code>XDG_RUNTIME_DIR</code> variable to be properly set.</p>
|
||
</div><h4 id='method.flush' class="method"><span id='flush.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.flush' class='fnname'>flush</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#208-215' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Non-blocking write to the server</p>
|
||
<p>Outgoing messages to the server are buffered by the library for efficiency. This method
|
||
flushes the internal buffer to the server socket.</p>
|
||
<p>Will write as many pending requests as possible to the server socket. Never blocks: if not all
|
||
requests coul be written, will return an io error <code>WouldBlock</code>.</p>
|
||
<p>On success returns the number of written requests.</p>
|
||
</div><h4 id='method.create_event_queue' class="method"><span id='create_event_queue.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.create_event_queue' class='fnname'>create_event_queue</a>(&self) -> <a class="struct" href="../wayland_client/struct.EventQueue.html" title="struct wayland_client::EventQueue">EventQueue</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#218-229' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create a new event queue associated with this wayland connection</p>
|
||
</div></div><h2 id='deref-methods' class='small-section-header'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><<a class="struct" href="../wayland_client/protocol/wl_display/struct.WlDisplay.html" title="struct wayland_client::protocol::wl_display::WlDisplay">WlDisplay</a>>><a href='#deref-methods' class='anchor'></a></h2><div class='impl-items'><h4 id='method.send' class="method"><span id='send.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.send' class='fnname'>send</a>(&self, msg: I::<a class="type" href="../wayland_client/commons/trait.Interface.html#associatedtype.Request" title="type wayland_client::commons::Interface::Request">Request</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#71-110' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Send a request through this object</p>
|
||
<p>This is the generic method to send requests.</p>
|
||
<p>Several requests require the creation of new objects using
|
||
the <code>child()</code> method, which if done wrong can cause protocol
|
||
errors (in which case the server will terminate your connexion).
|
||
Thus unless your know exactly what you are doing, you should use
|
||
the helper methods provided by the various <code>RequestsTrait</code> for
|
||
each interface, which handle this correctly for you.</p>
|
||
</div><h4 id='method.is_alive' class="method"><span id='is_alive.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_alive' class='fnname'>is_alive</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#118-130' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if the object associated with this proxy is still alive</p>
|
||
<p>Will return <code>false</code> if either:</p>
|
||
<ul>
|
||
<li>The object has been destroyed</li>
|
||
<li>The object is not managed by this library (see the <code>from_c_ptr</code> method)</li>
|
||
</ul>
|
||
</div><h4 id='method.version' class="method"><span id='version.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.version' class='fnname'>version</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#135-148' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Retrieve the interface version of this wayland object instance</p>
|
||
<p>Returns 0 on dead objects</p>
|
||
</div><h4 id='method.set_user_data' class="method"><span id='set_user_data.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_user_data' class='fnname'>set_user_data</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#159-170' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Associate an arbitrary payload to this object</p>
|
||
<p>The pointer you associate here can be retrieved from any
|
||
other proxy to the same wayland object.</p>
|
||
<p>Setting or getting user data is done as an atomic operation.
|
||
You are responsible for the correct initialization of this
|
||
pointer, synchronisation of access, and destruction of the
|
||
contents at the appropriate time.</p>
|
||
</div><h4 id='method.get_user_data' class="method"><span id='get_user_data.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.get_user_data' class='fnname'>get_user_data</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#175-188' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Retrieve the arbitrary payload associated to this object</p>
|
||
<p>See <code>set_user_data</code> for explanations.</p>
|
||
</div><h4 id='method.is_external' class="method"><span id='is_external.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_external' class='fnname'>is_external</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#194-196' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check whether this proxy is managed by the library or not</p>
|
||
<p>See <code>from_c_ptr</code> for details.</p>
|
||
</div><h4 id='method.equals' class="method"><span id='equals.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.equals' class='fnname'>equals</a>(&self, other: &<a class="struct" href="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><I>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#199-212' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check if the other proxy refers to the same underlying wayland object</p>
|
||
</div><h4 id='method.c_ptr' class="method"><span id='c_ptr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.c_ptr' class='fnname'>c_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../wayland_client/sys/client/enum.wl_proxy.html" title="enum wayland_client::sys::client::wl_proxy">wl_proxy</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#220-222' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Get a raw pointer to the underlying wayland object</p>
|
||
<p>Retrieve a pointer to the object from the <code>libwayland-client.so</code> library.
|
||
You will mostly need it to interface with C libraries needing access
|
||
to wayland objects (to initialize an opengl context for example).</p>
|
||
</div><h4 id='method.make_wrapper' class="method"><span id='make_wrapper.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.make_wrapper' class='fnname'>make_wrapper</a>(&self, queue: &<a class="struct" href="../wayland_client/struct.QueueToken.html" title="struct wayland_client::QueueToken">QueueToken</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="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><I>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#300-317' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create a wrapper for this object for queue management</p>
|
||
<p>As assigning a proxy to an event queue can be a racy operation
|
||
in contextes involving multiple thread, this provides a facility
|
||
to do this safely.</p>
|
||
<p>The wrapper object created behaves like a regular <code>Proxy</code>, except that
|
||
all objects created as the result of its requests will be assigned to
|
||
the queue associated to the provided token, rather than the queue of
|
||
their parent. This does not change the queue of the proxy itself.</p>
|
||
</div><h4 id='method.child' class="method"><span id='child.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.child' class='fnname'>child</a><C: <a class="trait" href="../wayland_client/commons/trait.Interface.html" title="trait wayland_client::commons::Interface">Interface</a>>(&self) -> <a class="struct" href="../wayland_client/struct.NewProxy.html" title="struct wayland_client::NewProxy">NewProxy</a><C></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#329-343' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create a new child object</p>
|
||
<p>This creates a new wayland object, considered as a
|
||
child of this object. It will notably inherit its interface
|
||
version.</p>
|
||
<p>The created object should immediatly be implemented and sent
|
||
in a request to the server, to keep the object list properly
|
||
synchronized. Failure to do so will likely cause a protocol
|
||
error.</p>
|
||
</div><h4 id='method.is_implemented_with' class="method"><span id='is_implemented_with.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_implemented_with' class='fnname'>is_implemented_with</a><Impl>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> Impl: <a class="trait" href="../wayland_client/commons/trait.Implementation.html" title="trait wayland_client::commons::Implementation">Implementation</a><<a class="struct" href="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><I>, I::<a class="type" href="../wayland_client/commons/trait.Interface.html#associatedtype.Event" title="type wayland_client::commons::Interface::Event">Event</a>> + 'static, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/proxy.rs.html#348-368' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Check whether this proxy has been implemented with given type</p>
|
||
<p>Always returns false if the proxy is no longer alive</p>
|
||
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Deref' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a></code><a href='#impl-Deref' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#232-237' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Target' class="type"><span id='Target.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><<a class="struct" href="../wayland_client/protocol/wl_display/struct.WlDisplay.html" title="struct wayland_client::protocol::wl_display::WlDisplay">WlDisplay</a>></code></span></h4>
|
||
<div class='docblock'><p>The resulting type after dereferencing.</p>
|
||
</div><h4 id='method.deref' class="method"><span id='deref.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&self) -> &<a class="struct" href="../wayland_client/struct.Proxy.html" title="struct wayland_client::Proxy">Proxy</a><<a class="struct" href="../wayland_client/protocol/wl_display/struct.WlDisplay.html" title="struct wayland_client::protocol::wl_display::WlDisplay">WlDisplay</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/wayland_client/display.rs.html#234-236' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Dereferences the value.</p>
|
||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../wayland_client/struct.Display.html" title="struct wayland_client::Display">Display</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "wayland_client";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |