-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
113 lines (99 loc) · 13.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!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 `rbot_discord` crate."><meta name="keywords" content="rust, rustlang, rust-lang, rbot_discord"><title>rbot_discord - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Crate rbot_discord</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#statics">Statics</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'rbot_discord', ty: 'mod', relpath: '../'};</script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/rbot_discord/main.rs.html#1-119' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>rbot_discord</a></span></h1><div class='docblock'><p>discord-db is a Rust Discord BOT.</p>
</div><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
<table><tr><td><code>extern crate <a class="mod" href="https://doc.rust-lang.org/nightly/std/index.html" title="mod std">std</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/chrono/latest/chrono/index.html" title="mod chrono">chrono</a>;</code></td></tr><tr><td><code>extern crate imap;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/native-tls/0.1.5/native_tls/index.html" title="mod native_tls">native_tls</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/rand/0.3/rand/index.html" title="mod rand">rand</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/reqwest/0.8.8/reqwest/index.html" title="mod reqwest">reqwest</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/serde/1.0.89/serde/index.html" title="mod serde">serde</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/serde_json/1.0.39/serde_json/index.html" title="mod serde_json">serde_json</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/serenity/*/serenity/index.html" title="mod serenity">serenity</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://doc.rust-lang.org/time/time/index.html" title="mod time">time</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/lazy_static/1.3.0/lazy_static/index.html" title="mod lazy_static">lazy_static</a>;</code></td></tr><tr><td><code>extern crate <a class="mod" href="https://docs.rs/serde_derive/1.0.89/serde_derive/index.html" title="mod serde_derive">serde_derive</a>;</code></td></tr><tr><td><code>use std::prelude::v1::*;</code></td></tr><tr><td><code>use core::<a class="mod" href="../rbot_discord/core/files/index.html" title="mod rbot_discord::core::files">files</a>;</code></td></tr><tr><td><code>use features::mail::<a class="struct" href="../rbot_discord/features/mail/struct.Info.html" title="struct rbot_discord::features::mail::Info">Info</a>;</code></td></tr><tr><td><code>use features::<a class="mod" href="../rbot_discord/features/notify/index.html" title="mod rbot_discord::features::notify">notify</a>;</code></td></tr><tr><td><code>use serenity::model::id::<a class="struct" href="https://docs.rs/serenity/*/serenity/model/id/struct.ChannelId.html" title="struct serenity::model::id::ChannelId">ChannelId</a>;</code></td></tr><tr><td><code>use std::<a class="mod" href="https://doc.rust-lang.org/nightly/std/io/index.html" title="mod std::io">io</a>;</code></td></tr><tr><td><code>use std::sync::<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>;</code></td></tr><tr><td><code>use std::sync::<a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>;</code></td></tr><tr><td><code>use chrono::<a class="mod" href="https://docs.rs/chrono/latest/chrono/prelude/index.html" title="mod chrono::prelude">prelude</a>::*;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table>
<tr class=' module-item'>
<td><a class="mod" href="core/index.html"
title='mod rbot_discord::core'>core</a></td>
<td class='docblock-short'>
<p>The base of the program containing the abstractions for files and connection to discord.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="mod" href="features/index.html"
title='mod rbot_discord::features'>features</a></td>
<td class='docblock-short'>
<p>Features for the bot</p>
</td>
</tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
<td><a class="struct" href="struct.CREDENTIALS_FILE.html"
title='struct rbot_discord::CREDENTIALS_FILE'>CREDENTIALS_FILE</a></td>
<td class='docblock-short'>
<p>Represent the file that store the credential</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Credentials.html"
title='struct rbot_discord::Credentials'>Credentials</a></td>
<td class='docblock-short'>
<p>Store the credential for the mail account, and discord token.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.MAIL_INFO_FILE.html"
title='struct rbot_discord::MAIL_INFO_FILE'>MAIL_INFO_FILE</a></td>
<td class='docblock-short'>
<p>Represent the file for mails config</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.MAIL_LOCK.html"
title='struct rbot_discord::MAIL_LOCK'>MAIL_LOCK</a></td>
<td class='docblock-short'>
<p>Is the last mail text, stored to be use on call back</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.NOTIFY_EVENT_FILE.html"
title='struct rbot_discord::NOTIFY_EVENT_FILE'>NOTIFY_EVENT_FILE</a></td>
<td class='docblock-short'>
</td>
</tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table>
<tr class=' module-item'>
<td><a class="constant" href="constant._IMPL_DESERIALIZE_FOR_Credentials.html"
title='constant rbot_discord::_IMPL_DESERIALIZE_FOR_Credentials'>_IMPL_DESERIALIZE_FOR_Credentials</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="constant" href="constant._IMPL_SERIALIZE_FOR_Credentials.html"
title='constant rbot_discord::_IMPL_SERIALIZE_FOR_Credentials'>_IMPL_SERIALIZE_FOR_Credentials</a></td>
<td class='docblock-short'>
</td>
</tr></table><h2 id='statics' class='section-header'><a href="#statics">Statics</a></h2>
<table>
<tr class=' module-item'>
<td><a class="static" href="static.CREDENTIALS_FILE.html"
title='static rbot_discord::CREDENTIALS_FILE'>CREDENTIALS_FILE</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="static" href="static.MAIL_INFO_FILE.html"
title='static rbot_discord::MAIL_INFO_FILE'>MAIL_INFO_FILE</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="static" href="static.MAIL_LOCK.html"
title='static rbot_discord::MAIL_LOCK'>MAIL_LOCK</a></td>
<td class='docblock-short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class="static" href="static.NOTIFY_EVENT_FILE.html"
title='static rbot_discord::NOTIFY_EVENT_FILE'>NOTIFY_EVENT_FILE</a></td>
<td class='docblock-short'>
</td>
</tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table>
<tr class=' module-item'>
<td><a class="fn" href="fn.main.html"
title='fn rbot_discord::main'>main</a></td>
<td class='docblock-short'>
<p>We run the core and we loop on a basic cmd.</p>
</td>
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "rbot_discord";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>