<!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 `Event` struct in crate `ocl`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Event">
<title>ocl::Event - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../main.css">
</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">
<p class='location'><a href='index.html'>ocl</a></p><script>window.sidebarCurrent = {name: 'Event', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<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">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>ocl</a>::<wbr><a class="struct" href=''>Event</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/ocl/standard/event.rs.html#42' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'><div class="docblock attributes">#[repr(C)]
#[must_use = "futures do nothing unless polled"]
</div>pub struct Event(_);</pre><div class='docblock'><p>An event representing a command or user created event.</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#44-145' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.empty' class="method"><span id='empty.v' class='invisible'><code>fn <a href='#method.empty' class='fnname'>empty</a>() -> <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span></h4>
<div class='docblock'><p>Creates a new, empty (null) event which must be filled by a command,
associating the event with it.</p>
</div><h4 id='method.user' class="method"><span id='user.v' class='invisible'><code>fn <a href='#method.user' class='fnname'>user</a><C: <a class="trait" href="../ocl_core/types/abs/trait.ClContextPtr.html" title="trait ocl_core::types::abs::ClContextPtr">ClContextPtr</a>>(context: C) -> <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a><<a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a>></code></span></h4>
<div class='docblock'><p>Creates a new, empty event which must be filled by a newly initiated
command, associating the event with it.</p>
</div><h4 id='method.is_empty' class="method"><span id='is_empty.v' class='invisible'><code>fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if this event is 'empty' and has not yet been associated
with a command.</p>
</div><h4 id='method.set_unpark_callback' class="method"><span id='set_unpark_callback.v' class='invisible'><code>fn <a href='#method.set_unpark_callback' class='fnname'>set_unpark_callback</a>(&self) -> <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>></code></span></h4>
<div class='docblock'><p>Sets a callback function to trigger upon completion of this event
which will unpark the current task.</p>
<p>To be used within the context of a futures task.</p>
<h2 id="panics" class="section-header"><a href="#panics">Panics</a></h2>
<p>This function will panic if a task is not currently being executed.
That is, this method can be dangerous to call outside of an
implementation of poll.</p>
</div><h4 id='method.info' class="method"><span id='info.v' class='invisible'><code>fn <a href='#method.info' class='fnname'>info</a>(&self, info_kind: <a class="enum" href="../ocl/enums/enum.EventInfo.html" title="enum ocl::enums::EventInfo">EventInfo</a>) -> <a class="enum" href="../ocl/enums/enum.EventInfoResult.html" title="enum ocl::enums::EventInfoResult">EventInfoResult</a></code></span></h4>
<div class='docblock'><p>Returns info about the event.</p>
</div><h4 id='method.profiling_info' class="method"><span id='profiling_info.v' class='invisible'><code>fn <a href='#method.profiling_info' class='fnname'>profiling_info</a>(&self, info_kind: <a class="enum" href="../ocl/enums/enum.ProfilingInfo.html" title="enum ocl::enums::ProfilingInfo">ProfilingInfo</a>) -> <a class="enum" href="../ocl/enums/enum.ProfilingInfoResult.html" title="enum ocl::enums::ProfilingInfoResult">ProfilingInfoResult</a></code></span></h4>
<div class='docblock'><p>Returns info about the event.</p>
</div><h4 id='method.queue_core' class="method"><span id='queue_core.v' class='invisible'><code>fn <a href='#method.queue_core' class='fnname'>queue_core</a>(&self) -> <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a><<a class="struct" href="../ocl_core/types/abs/struct.CommandQueue.html" title="struct ocl_core::types::abs::CommandQueue">CommandQueueCore</a>></code></span></h4>
<div class='docblock'><p>Returns this event's associated command queue.</p>
</div><h4 id='method.core' class="method"><span id='core.v' class='invisible'><code>fn <a href='#method.core' class='fnname'>core</a>(&self) -> &<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a></code></span></h4>
<div class='docblock'><p>Returns a reference to the core pointer wrapper, usable by functions in
the <code>core</code> module.</p>
</div><h4 id='method.into_raw' class="method"><span id='into_raw.v' class='invisible'><code>fn <a href='#method.into_raw' class='fnname'>into_raw</a>(self) -> <a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a></code></span></h4>
<div class='docblock'><p>Consumes the <code>Event</code>, returning the wrapped <code>cl_event</code> pointer.</p>
<p>To avoid a memory leak the pointer must be converted back to an <code>Event</code> using
<a href="struct.Event.html#method.from_raw"><code>Event::from_raw</code></a>.</p>
</div><h4 id='method.from_raw' class="method"><span id='from_raw.v' class='invisible'><code>unsafe fn <a href='#method.from_raw' class='fnname'>from_raw</a>(ptr: <a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a>) -> <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span></h4>
<div class='docblock'><p>Constructs an <code>Event</code> from a raw <code>cl_event</code> pointer.</p>
<p>The raw pointer must have been previously returned by a call to a
<a href="struct.Event.html#method.into_raw"><code>Event::into_raw</code></a>.</p>
</div></div><h2 id='deref-methods'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html" title="trait core::ops::Deref">Deref</a><Target = <a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a>></h2><div class='impl-items'><h4 id='method.set_complete' class="method"><span id='set_complete.v' class='invisible'><code>fn <a href='#method.set_complete' class='fnname'>set_complete</a>(&self) -> <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="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>></code></span></h4>
<div class='docblock'><p>Sets this user created event to <code>CommandExecutionStatus::Complete</code>.</p>
<p>Will return an error if this event is not a 'user' event (created
with <code>::user()</code>).</p>
</div><h4 id='method.is_complete' class="method"><span id='is_complete.v' class='invisible'><code>fn <a href='#method.is_complete' class='fnname'>is_complete</a>(&self) -> <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.bool.html">bool</a>, <a class="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>></code></span></h4>
<div class='docblock'><p>Queries the command status associated with this event and returns true
if it is complete, false if incomplete or upon error.</p>
<p>This is the fastest possible way to determine event status.</p>
</div><h4 id='method.wait_for' class="method"><span id='wait_for.v' class='invisible'><code>fn <a href='#method.wait_for' class='fnname'>wait_for</a>(&self) -> <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="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>></code></span></h4>
<div class='docblock'><p>Causes the command queue to wait until this event is complete before returning.</p>
</div><h4 id='method.is_null' class="method"><span id='is_null.v' class='invisible'><code>fn <a href='#method.is_null' class='fnname'>is_null</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns whether or not this event is associated with a command or is a
user event.</p>
</div><h4 id='method.is_valid' class="method"><span id='is_valid.v' class='invisible'><code>fn <a href='#method.is_valid' class='fnname'>is_valid</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>[FIXME]: ADD VALIDITY CHECK BY CALLING '_INFO' OR SOMETHING:
NULL CHECK IS NOT ENOUGH</p>
<p>This still leads to crazy segfaults when non-event pointers (random
whatever addresses) are passed. Need better check.</p>
</div><h4 id='method.set_callback' class="method"><span id='set_callback.v' class='invisible'><code>unsafe fn <a href='#method.set_callback' class='fnname'>set_callback</a>(<br> &self, <br> callback_receiver: extern fn(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a>), <br> user_data_ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a><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="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>></code></span></h4>
<div class='docblock'><p>Sets a callback function, <code>callback_receiver</code>, to trigger upon
completion of this event with an optional pointer to user data.</p>
<p>The callback function must have a signature matching:
<code>extern "C" fn (ffi::cl_event, i32, *mut libc::c_void)</code></p>
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
<p><code>user_data</code> must be guaranteed to still exist if and when <code>callback_receiver</code>
is ever called.</p>
<p>TODO: Create a safer type wrapper for <code>callback_receiver</code> (using an
<code>Arc</code>?, etc.) within <code>ocl</code>.</p>
</div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><code>fn <a href='#method.context' class='fnname'>context</a>(&self) -> <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="../ocl_core/types/abs/struct.Context.html" title="struct ocl_core::types::abs::Context">Context</a>, <a class="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>></code></span></h4>
<div class='docblock'><p>Returns the <code>Context</code> associated with this event.</p>
</div><h4 id='method.as_ptr_ref' class="method"><span id='as_ptr_ref.v' class='invisible'><code>unsafe fn <a href='#method.as_ptr_ref' class='fnname'>as_ptr_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a></code></span></h4>
<div class='docblock'><p>Returns an immutable reference to a pointer, do not deref and store it unless
you will manage its associated reference count carefully.</p>
<h3 id="warning" class="section-header"><a href="#warning">Warning</a></h3>
<p>DO NOT store this pointer.</p>
<p>DO NOT send this pointer across threads unless you are incrementing
the reference count before sending and decrementing after sending.</p>
<p>Use <code>::into_raw</code> for these purposes. Thank you.</p>
</div><h4 id='method.as_ptr_mut' class="method"><span id='as_ptr_mut.v' class='invisible'><code>unsafe fn <a href='#method.as_ptr_mut' class='fnname'>as_ptr_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a></code></span></h4>
<div class='docblock'><p>Returns a mutable reference to a pointer, do not deref then modify or store it
unless you will manage its associated reference count carefully.</p>
<h3 id="warning-1" class="section-header"><a href="#warning-1">Warning</a></h3>
<p>DO NOT store this pointer.</p>
<p>DO NOT send this pointer across threads unless you are incrementing
the reference count before sending and decrementing after sending.</p>
<p>Use <code>::into_raw</code> for these purposes. Thank you.</p>
</div><h4 id='method.into_raw-1' class="method"><span id='into_raw.v-1' class='invisible'><code>fn <a href='#method.into_raw-1' class='fnname'>into_raw</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a></code></span></h4>
<div class='docblock'><p>Consumes the <code>Event</code>, returning the wrapped <code>cl_event</code> pointer.</p>
<p>To avoid a memory leak the pointer must be converted back to an <code>Event</code> using
<a href="struct.Event.html#method.from_raw"><code>Event::from_raw</code></a>.</p>
</div></div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#39' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span></h4>
<div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: &Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#39' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a>> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#147-156' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(ev: <a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a>) -> <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#169-173' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span></h4>
<div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html" title="trait core::ops::Deref">Deref</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#175-181' title='goto source code'>[src]</a></span></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/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</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'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&self) -> &<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a></code></span></h4>
<div class='docblock'><p>The method called to dereference a value</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.DerefMut.html" title="trait core::ops::DerefMut">DerefMut</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#183-187' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.deref_mut' class="method"><span id='deref_mut.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.DerefMut.html#tymethod.deref_mut' class='fnname'>deref_mut</a>(&mut self) -> &mut <a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a></code></span></h4>
<div class='docblock'><p>The method called to mutably dereference a value</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a>> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#189-193' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ref' class="method"><span id='as_ref.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#196-200' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'e> <a class="trait" href="../ocl_core/types/abs/trait.ClEventPtrRef.html" title="trait ocl_core::types::abs::ClEventPtrRef">ClEventPtrRef</a><'e> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#202-206' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ptr_ref-1' class="method"><span id='as_ptr_ref.v-1' class='invisible'><code>unsafe fn <a href='../ocl_core/types/abs/trait.ClEventPtrRef.html#tymethod.as_ptr_ref' class='fnname'>as_ptr_ref</a>(&'e self) -> &'e <a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a></code></span></h4>
</div><h3 class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="../ocl_core/types/abs/trait.ClNullEventPtr.html" title="trait ocl_core::types::abs::ClNullEventPtr">ClNullEventPtr</a> for &'a mut <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#208-214' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.alloc_new' class="method"><span id='alloc_new.v' class='invisible'><code>fn <a href='../ocl_core/types/abs/trait.ClNullEventPtr.html#tymethod.alloc_new' class='fnname'>alloc_new</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a></code></span></h4>
<h4 id='method.clone_from-1' class="method"><span id='clone_from.v-1' class='invisible'><code>unsafe fn <a href='../ocl_core/types/abs/trait.ClNullEventPtr.html#tymethod.clone_from' class='fnname'>clone_from</a><E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../ocl_core/types/abs/struct.Event.html" title="struct ocl_core::types::abs::Event">EventCore</a>>>(&mut self, ev: E)</code></span></h4>
</div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../ocl_core/types/abs/trait.ClWaitListPtr.html" title="trait ocl_core::types::abs::ClWaitListPtr">ClWaitListPtr</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#216-219' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ptr_ptr' class="method"><span id='as_ptr_ptr.v' class='invisible'><code>unsafe fn <a href='../ocl_core/types/abs/trait.ClWaitListPtr.html#tymethod.as_ptr_ptr' class='fnname'>as_ptr_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const </a><a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a></code></span></h4>
<div class='docblock'><p>Returns a pointer to the first pointer in this list.</p>
</div><h4 id='method.count' class="method"><span id='count.v' class='invisible'><code>fn <a href='../ocl_core/types/abs/trait.ClWaitListPtr.html#tymethod.count' class='fnname'>count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h4>
<div class='docblock'><p>Returns the number of items in this wait list.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="../ocl_core/types/abs/trait.ClWaitListPtr.html" title="trait ocl_core::types::abs::ClWaitListPtr">ClWaitListPtr</a> for &'a <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#221-224' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ptr_ptr-1' class="method"><span id='as_ptr_ptr.v-1' class='invisible'><code>unsafe fn <a href='../ocl_core/types/abs/trait.ClWaitListPtr.html#tymethod.as_ptr_ptr' class='fnname'>as_ptr_ptr</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const </a><a class="type" href="../cl_sys/cl_h/type.cl_event.html" title="type cl_sys::cl_h::cl_event">cl_event</a></code></span></h4>
<div class='docblock'><p>Returns a pointer to the first pointer in this list.</p>
</div><h4 id='method.count-1' class="method"><span id='count.v-1' class='invisible'><code>fn <a href='../ocl_core/types/abs/trait.ClWaitListPtr.html#tymethod.count' class='fnname'>count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h4>
<div class='docblock'><p>Returns the number of items in this wait list.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../ocl/struct.Event.html" title="struct ocl::Event">Event</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/event.rs.html#226-259' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../futures/future/trait.Future.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a></code></span></h4>
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../futures/future/trait.Future.html#associatedtype.Item">Read more</a></p>
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../futures/future/trait.Future.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">OclError</a></code></span></h4>
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../futures/future/trait.Future.html#associatedtype.Error">Read more</a></p>
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#tymethod.poll' class='fnname'>poll</a>(&mut self) -> <a class="type" href="../futures/poll/type.Poll.html" title="type futures::poll::Poll">Poll</a><Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>, Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>></code></span></h4>
<div class='docblock'><p>Query this future to see if its value has become available, registering interest if it is not. <a href="../futures/future/trait.Future.html#tymethod.poll">Read more</a></p>
</div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.wait' class='fnname'>wait</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>, Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>></code></span></h4>
<div class='docblock'><p>Block the current thread until this future is resolved. <a href="../futures/future/trait.Future.html#method.wait">Read more</a></p>
</div><h4 id='method.boxed' class="method"><span id='boxed.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.boxed' class='fnname'>boxed</a>(<br> self<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>, Item = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static, </span></code></span></h4>
<div class='docblock'><p>Convenience function for turning this future into a trait object which is also <code>Send</code>. <a href="../futures/future/trait.Future.html#method.boxed">Read more</a></p>
</div><h4 id='method.map' class="method"><span id='map.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../futures/future/map/struct.Map.html" title="struct futures::future::map::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.FnOnce.html" title="trait core::ops::FnOnce">FnOnce</a>(Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>) -> U, </span></code></span></h4>
<div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../futures/future/trait.Future.html#method.map">Read more</a></p>
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../futures/future/map_err/struct.MapErr.html" title="struct futures::future::map_err::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.FnOnce.html" title="trait core::ops::FnOnce">FnOnce</a>(Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>) -> E, </span></code></span></h4>
<div class='docblock'><p>Map this future's error to a different error, returning a new future. <a href="../futures/future/trait.Future.html#method.map_err">Read more</a></p>
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../futures/future/from_err/struct.FromErr.html" title="struct futures::future::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../futures/future/trait.Future.html#method.from_err">Read more</a></p>
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../futures/future/then/struct.Then.html" title="struct futures::future::then::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.FnOnce.html" title="trait core::ops::FnOnce">FnOnce</a>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>, Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>) -> B, </span></code></span></h4>
<div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../futures/future/trait.Future.html#method.then">Read more</a></p>
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../futures/future/and_then/struct.AndThen.html" title="struct futures::future::and_then::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.FnOnce.html" title="trait core::ops::FnOnce">FnOnce</a>(Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>) -> B, </span></code></span></h4>
<div class='docblock'><p>Execute another future after this one has resolved successfully. <a href="../futures/future/trait.Future.html#method.and_then">Read more</a></p>
</div><h4 id='method.or_else' class="method"><span id='or_else.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.or_else' class='fnname'>or_else</a><F, B>(self, f: F) -> <a class="struct" href="../futures/future/or_else/struct.OrElse.html" title="struct futures::future::or_else::OrElse">OrElse</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Item = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.FnOnce.html" title="trait core::ops::FnOnce">FnOnce</a>(Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>) -> B, </span></code></span></h4>
<div class='docblock'><p>Execute another future if this one resolves with an error. <a href="../futures/future/trait.Future.html#method.or_else">Read more</a></p>
</div><h4 id='method.select' class="method"><span id='select.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.select' class='fnname'>select</a><B>(self, other: B) -> <a class="struct" href="../futures/future/select/struct.Select.html" title="struct futures::future::select::Select">Select</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Item = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>, Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Waits for either one of two futures to complete. <a href="../futures/future/trait.Future.html#method.select">Read more</a></p>
</div><h4 id='method.select2' class="method"><span id='select2.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.select2' class='fnname'>select2</a><B>(self, other: B) -> <a class="struct" href="../futures/future/select2/struct.Select2.html" title="struct futures::future::select2::Select2">Select2</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>, </span></code></span></h4>
<div class='docblock'><p>Waits for either one of two differently-typed futures to complete. <a href="../futures/future/trait.Future.html#method.select2">Read more</a></p>
</div><h4 id='method.join' class="method"><span id='join.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.join' class='fnname'>join</a><B>(self, other: B) -> <a class="struct" href="../futures/future/join/struct.Join.html" title="struct futures::future::join::Join">Join</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Joins the result of two futures, waiting for them both to complete. <a href="../futures/future/trait.Future.html#method.join">Read more</a></p>
</div><h4 id='method.join3' class="method"><span id='join3.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.join3' class='fnname'>join3</a><B, C>(self, b: B, c: C) -> <a class="struct" href="../futures/future/join/struct.Join3.html" title="struct futures::future::join::Join3">Join3</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, C::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> C: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
</div><h4 id='method.join4' class="method"><span id='join4.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.join4' class='fnname'>join4</a><B, C, D>(<br> self, <br> b: B, <br> c: C, <br> d: D<br>) -> <a class="struct" href="../futures/future/join/struct.Join4.html" title="struct futures::future::join::Join4">Join4</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, C::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, D::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> C: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> D: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
</div><h4 id='method.join5' class="method"><span id='join5.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.join5' class='fnname'>join5</a><B, C, D, E>(<br> self, <br> b: B, <br> c: C, <br> d: D, <br> e: E<br>) -> <a class="struct" href="../futures/future/join/struct.Join5.html" title="struct futures::future::join::Join5">Join5</a><Self, B::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, C::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, D::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>, E::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> C: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> D: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>,<br> E: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
</div><h4 id='method.into_stream' class="method"><span id='into_stream.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.into_stream' class='fnname'>into_stream</a>(self) -> <a class="struct" href="../futures/future/into_stream/struct.IntoStream.html" title="struct futures::future::into_stream::IntoStream">IntoStream</a><Self></code></span></h4>
<div class='docblock'><p>Convert this future into a single element stream. <a href="../futures/future/trait.Future.html#method.into_stream">Read more</a></p>
</div><h4 id='method.flatten' class="method"><span id='flatten.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.flatten' class='fnname'>flatten</a>(self) -> <a class="struct" href="../futures/future/flatten/struct.Flatten.html" title="struct futures::future::flatten::Flatten">Flatten</a><Self> <span class="where fmt-newline">where<br> Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>: <a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>::<a class="trait" href="../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>>, </span></code></span></h4>
<div class='docblock'><p>Flatten the execution of this future when the successful result of this future is itself another future. <a href="../futures/future/trait.Future.html#method.flatten">Read more</a></p>
</div><h4 id='method.flatten_stream' class="method"><span id='flatten_stream.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.flatten_stream' class='fnname'>flatten_stream</a>(self) -> <a class="struct" href="../futures/future/flatten_stream/struct.FlattenStream.html" title="struct futures::future::flatten_stream::FlattenStream">FlattenStream</a><Self> <span class="where fmt-newline">where<br> Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>: <a class="trait" href="../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br> Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Item</a>::<a class="trait" href="../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Error</a> == Self::<a class="trait" href="../futures/future/trait.Future.html" title="trait futures::future::Future">Error</a>, </span></code></span></h4>
<div class='docblock'><p>Flatten the execution of this future when the successful result of this future is a stream. <a href="../futures/future/trait.Future.html#method.flatten_stream">Read more</a></p>
</div><h4 id='method.fuse' class="method"><span id='fuse.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.fuse' class='fnname'>fuse</a>(self) -> <a class="struct" href="../futures/future/fuse/struct.Fuse.html" title="struct futures::future::fuse::Fuse">Fuse</a><Self></code></span></h4>
<div class='docblock'><p>Fuse a future such that <code>poll</code> will never again be called once it has completed. <a href="../futures/future/trait.Future.html#method.fuse">Read more</a></p>
</div><h4 id='method.catch_unwind' class="method"><span id='catch_unwind.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.catch_unwind' class='fnname'>catch_unwind</a>(self) -> <a class="struct" href="../futures/future/catch_unwind/struct.CatchUnwind.html" title="struct futures::future::catch_unwind::CatchUnwind">CatchUnwind</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code></span></h4>
<div class='docblock'><p>Catches unwinding panics while polling the future. <a href="../futures/future/trait.Future.html#method.catch_unwind">Read more</a></p>
</div><h4 id='method.shared' class="method"><span id='shared.v' class='invisible'><code>fn <a href='../futures/future/trait.Future.html#method.shared' class='fnname'>shared</a>(self) -> <a class="struct" href="../futures/future/shared/struct.Shared.html" title="struct futures::future::shared::Shared">Shared</a><Self></code></span></h4>
<div class='docblock'><p>Create a cloneable handle to this future where all handles will resolve to the same result. <a href="../futures/future/trait.Future.html#method.shared">Read more</a></p>
</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>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>⇤</dt>
<dd>Move up in search results</dd>
<dt>⇥</dt>
<dd>Move down in search results</dd>
<dt>⏎</dt>
<dd>Go to active search result</dd>
<dt>+</dt>
<dd>Collapse/expand 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>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "ocl";
</script>
<script src="../jquery.js"></script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>