Struct irc_bot::State [−][src]
pub struct State { /* fields omitted */ }
Methods
impl State
[src]
impl State
pub fn load_modules<Modls>(
&mut self,
modules: Modls,
mode: ModuleLoadMode
) -> Result<(), Vec<Error>> where
Modls: IntoIterator<Item = Module>,
[src]
pub fn load_modules<Modls>(
&mut self,
modules: Modls,
mode: ModuleLoadMode
) -> Result<(), Vec<Error>> where
Modls: IntoIterator<Item = Module>,
pub fn load_module(
&mut self,
module: Module,
mode: ModuleLoadMode
) -> Result<(), Vec<Error>>
[src]
pub fn load_module(
&mut self,
module: Module,
mode: ModuleLoadMode
) -> Result<(), Vec<Error>>
impl State
[src]
impl State
pub fn framework_crate_name(&self) -> &'static str
[src]
pub fn framework_crate_name(&self) -> &'static str
Returns a &str
containing either the name of this crate or the text "<unknown>"
.
pub fn framework_version_str(&self) -> &'static str
[src]
pub fn framework_version_str(&self) -> &'static str
Returns a &str
containing either version information for the bot framework or the text
"<unknown>"
.
This version information is intended for display only, and is not necessarily in SemVer format or otherwise intended as machine-readable.
pub fn framework_homepage_url_str(&self) -> &'static str
[src]
pub fn framework_homepage_url_str(&self) -> &'static str
Returns a &str
containing either a Uniform Resource Locator (URL) for a Web page
containing information about the bot framework, or the text "<unknown>"
.
impl State
[src]
impl State
pub fn nick(&self, server_id: ServerId) -> Result<String>
[src]
pub fn nick(&self, server_id: ServerId) -> Result<String>
pub fn module_data_path(&self) -> Result<&Path>
[src]
pub fn module_data_path(&self) -> Result<&Path>
pub fn command(&self, name: &str) -> Result<Option<&BotCommand>>
[src]
pub fn command(&self, name: &str) -> Result<Option<&BotCommand>>
pub fn command_names(&self) -> Result<Vec<Cow<'static, str>>>
[src]
pub fn command_names(&self) -> Result<Vec<Cow<'static, str>>>
pub fn have_admin(
&self,
MsgPrefix { nick: nick_1, user: user_1, host: host_1 }: MsgPrefix
) -> Result<bool>
[src]
pub fn have_admin(
&self,
MsgPrefix { nick: nick_1, user: user_1, host: host_1 }: MsgPrefix
) -> Result<bool>
pub fn rng(&self) -> Result<MutexGuard<StdRng>>
[src]
pub fn rng(&self) -> Result<MutexGuard<StdRng>>
Allows access to a random number generator that's stored centrally, to avoid the cost of repeatedly initializing one.