This repository has been archived on 2022-04-04. You can view files and clone it, but cannot push or open issues or pull requests.

93 lines
53 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="An event sent from Discord to notify us of some kind of state change or completed action."><meta name="keywords" content="rust, rustlang, rust-lang, Event"><title>Event in discord_sdk - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a class="sidebar-logo" href="../discord_sdk/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.png" alt="logo"></div>
</a><h2 class="location">Enum Event</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#variants">Variants</a></h3><div class="sidebar-links"><a href="#variant.ActivityInvite">ActivityInvite</a><a href="#variant.ActivityJoin">ActivityJoin</a><a href="#variant.ActivityJoinRequest">ActivityJoinRequest</a><a href="#variant.ActivitySpectate">ActivitySpectate</a><a href="#variant.CurrentUserUpdate">CurrentUserUpdate</a><a href="#variant.Disconnected">Disconnected</a><a href="#variant.Error">Error</a><a href="#variant.LobbyConnect">LobbyConnect</a><a href="#variant.LobbyCreate">LobbyCreate</a><a href="#variant.LobbyDelete">LobbyDelete</a><a href="#variant.LobbyMemberConnect">LobbyMemberConnect</a><a href="#variant.LobbyMemberDisconnect">LobbyMemberDisconnect</a><a href="#variant.LobbyMemberUpdate">LobbyMemberUpdate</a><a href="#variant.LobbyMessage">LobbyMessage</a><a href="#variant.LobbyUpdate">LobbyUpdate</a><a href="#variant.OverlayUpdate">OverlayUpdate</a><a href="#variant.Ready">Ready</a><a href="#variant.RelationshipUpdate">RelationshipUpdate</a><a href="#variant.SpeakingStart">SpeakingStart</a><a href="#variant.SpeakingStop">SpeakingStop</a><a href="#variant.VoiceSettingsUpdate">VoiceSettingsUpdate</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-WithSubscriber">WithSubscriber</a></div></div><h2 class="location">Other items in<br><a href="index.html">discord_sdk</a></h2><div id="sidebar-vars" data-name="Event" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../discord_sdk/index.html"><img class="rust-logo" src="../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">discord_sdk</a>::<wbr><a class="enum" href="#">Event</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></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">&#x2212;</span>]</a></span><a class="srclink" href="../src/discord_sdk/proto/event.rs.html#52-142" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust enum"><code>pub enum Event {
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 21 variants</span></summary> Error(ErrorPayload),
Ready(<a class="struct" href="user/events/struct.ConnectEvent.html" title="struct discord_sdk::user::events::ConnectEvent">ConnectEvent</a>),
Disconnected {
reason: <a class="enum" href="error/enum.Error.html" title="enum discord_sdk::error::Error">Error</a>,
},
CurrentUserUpdate(<a class="struct" href="user/events/struct.UpdateEvent.html" title="struct discord_sdk::user::events::UpdateEvent">UpdateEvent</a>),
SpeakingStart(<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a>),
SpeakingStop(<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a>),
LobbyMemberConnect(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>),
LobbyMemberDisconnect(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>),
LobbyDelete {
id: <a class="type" href="lobby/type.LobbyId.html" title="type discord_sdk::lobby::LobbyId">LobbyId</a>,
},
LobbyUpdate(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>),
LobbyMemberUpdate(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>),
LobbyMessage(<a class="struct" href="lobby/events/struct.MessageEvent.html" title="struct discord_sdk::lobby::events::MessageEvent">MessageEvent</a>),
LobbyCreate(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>),
LobbyConnect(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>),
ActivityJoin(<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a>),
ActivitySpectate(<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a>),
ActivityJoinRequest(<a class="struct" href="activity/events/struct.JoinRequestEvent.html" title="struct discord_sdk::activity::events::JoinRequestEvent">JoinRequestEvent</a>),
ActivityInvite(<a class="struct" href="activity/events/struct.InviteEvent.html" title="struct discord_sdk::activity::events::InviteEvent">InviteEvent</a>),
OverlayUpdate(<a class="struct" href="overlay/events/struct.UpdateEvent.html" title="struct discord_sdk::overlay::events::UpdateEvent">UpdateEvent</a>),
RelationshipUpdate(<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="relations/struct.Relationship.html" title="struct discord_sdk::relations::Relationship">Relationship</a>&gt;),
VoiceSettingsUpdate(<a class="struct" href="voice/events/struct.VoiceSettingsUpdateEvent.html" title="struct discord_sdk::voice::events::VoiceSettingsUpdateEvent">VoiceSettingsUpdateEvent</a>),
</details>}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An event sent from Discord to notify us of some kind of state change or
completed action.</p>
<div class="example-wrap"><pre class="language-json"><code>{ &quot;evt&quot;: &quot;ACTIVITY_JOIN&quot;, &quot;data&quot;: { &quot;secret&quot;: &quot;super_sekret&quot; } }</code></pre></div></div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Error" class="variant small-section-header"><a href="#variant.Error" class="anchor field"></a><code>Error(ErrorPayload)</code></h3><div class="sub-variant" id="variant.Error.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.Error.field.0" class="variant small-section-header"><a href="#variant.Error.field.0" class="anchor field"></a><code>0:&nbsp;ErrorPayload</code></span></div></div><div class="docblock"><p>Fires when weve done something naughty and Discord is telling us to stop.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/discord#error-handling">API docs</a></p>
</div><h3 id="variant.Ready" class="variant small-section-header"><a href="#variant.Ready" class="anchor field"></a><code>Ready(<a class="struct" href="user/events/struct.ConnectEvent.html" title="struct discord_sdk::user::events::ConnectEvent">ConnectEvent</a>)</code></h3><div class="sub-variant" id="variant.Ready.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.Ready.field.0" class="variant small-section-header"><a href="#variant.Ready.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="user/events/struct.ConnectEvent.html" title="struct discord_sdk::user::events::ConnectEvent">ConnectEvent</a></code></span></div></div><div class="docblock"><p>Sent by Discord upon receipt of our <code>Handshake</code> message, the user is
the current user logged in to the Discord we connected to.</p>
</div><h3 id="variant.Disconnected" class="variant small-section-header"><a href="#variant.Disconnected" class="anchor field"></a><code>Disconnected</code></h3><div class="sub-variant" id="variant.Disconnected.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Disconnected.field.reason" class="variant small-section-header"><a href="#variant.Disconnected.field.reason" class="anchor field"></a><code>reason:&nbsp;<a class="enum" href="error/enum.Error.html" title="enum discord_sdk::error::Error">Error</a></code></span></div></div><div class="docblock"><p>Fired when the connection has been interrupted between us and Discord,
this is a synthesized event as there are can be numerous reasons on
the client side for this to happen, in addition to Discord itself being
closed, etc.</p>
</div><h3 id="variant.CurrentUserUpdate" class="variant small-section-header"><a href="#variant.CurrentUserUpdate" class="anchor field"></a><code>CurrentUserUpdate(<a class="struct" href="user/events/struct.UpdateEvent.html" title="struct discord_sdk::user::events::UpdateEvent">UpdateEvent</a>)</code></h3><div class="sub-variant" id="variant.CurrentUserUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.CurrentUserUpdate.field.0" class="variant small-section-header"><a href="#variant.CurrentUserUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="user/events/struct.UpdateEvent.html" title="struct discord_sdk::user::events::UpdateEvent">UpdateEvent</a></code></span></div></div><div class="docblock"><p>Fired when any details on the current logged in user are changed.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/users#oncurrentuserupdate">API docs</a></p>
</div><h3 id="variant.SpeakingStart" class="variant small-section-header"><a href="#variant.SpeakingStart" class="anchor field"></a><code>SpeakingStart(<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a>)</code></h3><div class="sub-variant" id="variant.SpeakingStart.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.SpeakingStart.field.0" class="variant small-section-header"><a href="#variant.SpeakingStart.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a></code></span></div></div><div class="docblock"><p>Event fired when a user starts speaking in a lobby voice channel.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onspeaking">API docs</a></p>
</div><h3 id="variant.SpeakingStop" class="variant small-section-header"><a href="#variant.SpeakingStop" class="anchor field"></a><code>SpeakingStop(<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a>)</code></h3><div class="sub-variant" id="variant.SpeakingStop.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.SpeakingStop.field.0" class="variant small-section-header"><a href="#variant.SpeakingStop.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.SpeakingEvent.html" title="struct discord_sdk::lobby::events::SpeakingEvent">SpeakingEvent</a></code></span></div></div><div class="docblock"><p>Event fired when a user stops speaking in a lobby voice channel.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onspeaking">API docs</a></p>
</div><h3 id="variant.LobbyMemberConnect" class="variant small-section-header"><a href="#variant.LobbyMemberConnect" class="anchor field"></a><code>LobbyMemberConnect(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>)</code></h3><div class="sub-variant" id="variant.LobbyMemberConnect.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyMemberConnect.field.0" class="variant small-section-header"><a href="#variant.LobbyMemberConnect.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a></code></span></div></div><div class="docblock"><p>Event fired when a user connects to a lobby.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onmemberconnect">API docs</a></p>
</div><h3 id="variant.LobbyMemberDisconnect" class="variant small-section-header"><a href="#variant.LobbyMemberDisconnect" class="anchor field"></a><code>LobbyMemberDisconnect(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>)</code></h3><div class="sub-variant" id="variant.LobbyMemberDisconnect.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyMemberDisconnect.field.0" class="variant small-section-header"><a href="#variant.LobbyMemberDisconnect.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a></code></span></div></div><div class="docblock"><p>Event fired when a user disconnects from a lobby.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onmemberdisconnect">API docs</a></p>
</div><h3 id="variant.LobbyDelete" class="variant small-section-header"><a href="#variant.LobbyDelete" class="anchor field"></a><code>LobbyDelete</code></h3><div class="sub-variant" id="variant.LobbyDelete.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.LobbyDelete.field.id" class="variant small-section-header"><a href="#variant.LobbyDelete.field.id" class="anchor field"></a><code>id:&nbsp;<a class="type" href="lobby/type.LobbyId.html" title="type discord_sdk::lobby::LobbyId">LobbyId</a></code></span></div></div><div class="docblock"><p>Event fired when a lobby is deleted, or the user disconnects from the lobby.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onlobbydelete">API docs</a></p>
</div><h3 id="variant.LobbyUpdate" class="variant small-section-header"><a href="#variant.LobbyUpdate" class="anchor field"></a><code>LobbyUpdate(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>)</code></h3><div class="sub-variant" id="variant.LobbyUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyUpdate.field.0" class="variant small-section-header"><a href="#variant.LobbyUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a></code></span></div></div><div class="docblock"><p>Event fired when a lobby is updated. Note that this is only the metadata
on the lobby itself, not the <code>members</code>.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onlobbyupdate">API docs</a></p>
</div><h3 id="variant.LobbyMemberUpdate" class="variant small-section-header"><a href="#variant.LobbyMemberUpdate" class="anchor field"></a><code>LobbyMemberUpdate(<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a>)</code></h3><div class="sub-variant" id="variant.LobbyMemberUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyMemberUpdate.field.0" class="variant small-section-header"><a href="#variant.LobbyMemberUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.MemberEvent.html" title="struct discord_sdk::lobby::events::MemberEvent">MemberEvent</a></code></span></div></div><div class="docblock"><p>Event fired when the metadata for a lobby member is changed.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onmemberupdate">API docs</a></p>
</div><h3 id="variant.LobbyMessage" class="variant small-section-header"><a href="#variant.LobbyMessage" class="anchor field"></a><code>LobbyMessage(<a class="struct" href="lobby/events/struct.MessageEvent.html" title="struct discord_sdk::lobby::events::MessageEvent">MessageEvent</a>)</code></h3><div class="sub-variant" id="variant.LobbyMessage.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyMessage.field.0" class="variant small-section-header"><a href="#variant.LobbyMessage.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/events/struct.MessageEvent.html" title="struct discord_sdk::lobby::events::MessageEvent">MessageEvent</a></code></span></div></div><div class="docblock"><p>Event fired when a message is sent to the lobby.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/lobbies#onlobbymessage">API docs</a></p>
</div><h3 id="variant.LobbyCreate" class="variant small-section-header"><a href="#variant.LobbyCreate" class="anchor field"></a><code>LobbyCreate(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>)</code></h3><div class="sub-variant" id="variant.LobbyCreate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyCreate.field.0" class="variant small-section-header"><a href="#variant.LobbyCreate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a></code></span></div></div><h3 id="variant.LobbyConnect" class="variant small-section-header"><a href="#variant.LobbyConnect" class="anchor field"></a><code>LobbyConnect(<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a>)</code></h3><div class="sub-variant" id="variant.LobbyConnect.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.LobbyConnect.field.0" class="variant small-section-header"><a href="#variant.LobbyConnect.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="lobby/struct.Lobby.html" title="struct discord_sdk::lobby::Lobby">Lobby</a></code></span></div></div><h3 id="variant.ActivityJoin" class="variant small-section-header"><a href="#variant.ActivityJoin" class="anchor field"></a><code>ActivityJoin(<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a>)</code></h3><div class="sub-variant" id="variant.ActivityJoin.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.ActivityJoin.field.0" class="variant small-section-header"><a href="#variant.ActivityJoin.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a></code></span></div></div><div class="docblock"><p>Sent by Discord when the local user has requested to join a game, and
the remote user has accepted their request.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/activities#onactivityjoin">API docs</a></p>
</div><h3 id="variant.ActivitySpectate" class="variant small-section-header"><a href="#variant.ActivitySpectate" class="anchor field"></a><code>ActivitySpectate(<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a>)</code></h3><div class="sub-variant" id="variant.ActivitySpectate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.ActivitySpectate.field.0" class="variant small-section-header"><a href="#variant.ActivitySpectate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="activity/events/struct.SecretEvent.html" title="struct discord_sdk::activity::events::SecretEvent">SecretEvent</a></code></span></div></div><div class="docblock"><p>Sent by Discord when the local user has chosen to spectate another users
game session.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/activities#onactivityspectate">API docs</a></p>
</div><h3 id="variant.ActivityJoinRequest" class="variant small-section-header"><a href="#variant.ActivityJoinRequest" class="anchor field"></a><code>ActivityJoinRequest(<a class="struct" href="activity/events/struct.JoinRequestEvent.html" title="struct discord_sdk::activity::events::JoinRequestEvent">JoinRequestEvent</a>)</code></h3><div class="sub-variant" id="variant.ActivityJoinRequest.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.ActivityJoinRequest.field.0" class="variant small-section-header"><a href="#variant.ActivityJoinRequest.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="activity/events/struct.JoinRequestEvent.html" title="struct discord_sdk::activity::events::JoinRequestEvent">JoinRequestEvent</a></code></span></div></div><div class="docblock"><p>Fires when a user asks to join the current users game.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/activities#onactivityjoinrequest">API docs</a></p>
</div><h3 id="variant.ActivityInvite" class="variant small-section-header"><a href="#variant.ActivityInvite" class="anchor field"></a><code>ActivityInvite(<a class="struct" href="activity/events/struct.InviteEvent.html" title="struct discord_sdk::activity::events::InviteEvent">InviteEvent</a>)</code></h3><div class="sub-variant" id="variant.ActivityInvite.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.ActivityInvite.field.0" class="variant small-section-header"><a href="#variant.ActivityInvite.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="activity/events/struct.InviteEvent.html" title="struct discord_sdk::activity::events::InviteEvent">InviteEvent</a></code></span></div></div><div class="docblock"><p>Fires when the current user is invited by another user to their game.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/activities#onactivityinvite">API docs</a></p>
</div><h3 id="variant.OverlayUpdate" class="variant small-section-header"><a href="#variant.OverlayUpdate" class="anchor field"></a><code>OverlayUpdate(<a class="struct" href="overlay/events/struct.UpdateEvent.html" title="struct discord_sdk::overlay::events::UpdateEvent">UpdateEvent</a>)</code></h3><div class="sub-variant" id="variant.OverlayUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.OverlayUpdate.field.0" class="variant small-section-header"><a href="#variant.OverlayUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="overlay/events/struct.UpdateEvent.html" title="struct discord_sdk::overlay::events::UpdateEvent">UpdateEvent</a></code></span></div></div><div class="docblock"><p>Event fired when the overlay state changes.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/overlay#ontoggle">API docs</a></p>
</div><h3 id="variant.RelationshipUpdate" class="variant small-section-header"><a href="#variant.RelationshipUpdate" class="anchor field"></a><code>RelationshipUpdate(<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="relations/struct.Relationship.html" title="struct discord_sdk::relations::Relationship">Relationship</a>&gt;)</code></h3><div class="sub-variant" id="variant.RelationshipUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.RelationshipUpdate.field.0" class="variant small-section-header"><a href="#variant.RelationshipUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="relations/struct.Relationship.html" title="struct discord_sdk::relations::Relationship">Relationship</a>&gt;</code></span></div></div><div class="docblock"><p>Event fired when a relationship with another user changes.</p>
<p><a href="https://discord.com/developers/docs/game-sdk/relationships#onrelationshipupdate">API docs</a></p>
</div><h3 id="variant.VoiceSettingsUpdate" class="variant small-section-header"><a href="#variant.VoiceSettingsUpdate" class="anchor field"></a><code>VoiceSettingsUpdate(<a class="struct" href="voice/events/struct.VoiceSettingsUpdateEvent.html" title="struct discord_sdk::voice::events::VoiceSettingsUpdateEvent">VoiceSettingsUpdateEvent</a>)</code></h3><div class="sub-variant" id="variant.VoiceSettingsUpdate.fields"><h4>Tuple Fields</h4><div class="sub-variant-field"><span id="variant.VoiceSettingsUpdate.field.0" class="variant small-section-header"><a href="#variant.VoiceSettingsUpdate.field.0" class="anchor field"></a><code>0:&nbsp;<a class="struct" href="voice/events/struct.VoiceSettingsUpdateEvent.html" title="struct discord_sdk::voice::events::VoiceSettingsUpdateEvent">VoiceSettingsUpdateEvent</a></code></span></div></div><div class="docblock"><p>Event fired when any voice settings are changed</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/discord_sdk/proto/event.rs.html#49" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/discord_sdk/proto/event.rs.html#49" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.59.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/discord_sdk/proto/event.rs.html#49" title="goto source code">[src]</a></div><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deserialize" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/discord_sdk/proto/event.rs.html#49" title="goto source code">[src]</a></div><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></div></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details></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"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.Event.html" title="enum discord_sdk::Event">Event</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#209-214" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#211" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#218-222" title="goto source code">[src]</a></div><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#219" title="goto source code">[src]</a></div><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;mut </a>T</h4></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#550-554" title="goto source code">[src]</a></div><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#551" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Instrument" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#276" title="goto source code">[src]</a></div><a href="#impl-Instrument" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.instrument" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#82" title="goto source code">[src]</a></div><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></div></summary><div class='docblock'><p>Instruments this type with the provided <a href="../tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.in_current_span" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#121" title="goto source code">[src]</a></div><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></div></summary><div class='docblock'><p>Instruments this type with the <a href="../tracing/span/struct.Span.html#method.current">current</a> <a href="../tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Into%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#538-545" title="goto source code">[src]</a></div><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#542" title="goto source code">[src]</a></div><a href="#method.into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryFrom%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#588-597" title="goto source code">[src]</a></div><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-1" class="type trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#594" title="goto source code">[src]</a></div><a href="#method.try_from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryInto%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#574-583" title="goto source code">[src]</a></div><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error" class="type trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#580" title="goto source code">[src]</a></div><a href="#method.try_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-WithSubscriber" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#334" title="goto source code">[src]</a></div><a href="#impl-WithSubscriber" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.with_subscriber" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#169-171" title="goto source code">[src]</a></div><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>&gt;,&nbsp;</span></h4></div></summary><div class='docblock'><p>Attaches the provided <a href="../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.with_current_subscriber" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/tracing/instrument.rs.html#221" title="goto source code">[src]</a></div><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></div></summary><div class='docblock'><p>Attaches the current <a href="../tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></p>
</div></details></div></details><div id="impl-DeserializeOwned" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/serde/de/mod.rs.html#605" title="goto source code">[src]</a></div><a href="#impl-DeserializeOwned" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: for&lt;'de&gt; <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,&nbsp;</span></h3></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="discord_sdk" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
</body></html>