Struct dazeus::DaZeus [] [src]

pub struct DaZeus<'a, T> { /* fields omitted */ }

The base DaZeus struct.

See the crate documentation for a more detailed instruction on how to get started with these DaZeus bindings.

Methods

impl<'a, T> DaZeus<'a, T> where
    T: Read + Write
[src]

Create a new instance of DaZeus from the given connection.

Loop wait for messages to receive in a blocking way.

Subscribe to an event type and call the callback function every time such an event occurs.

Subscribe to a command and call the callback function every time such a command occurs.

Trait Implementations

impl<'a, T> DaZeusClient<'a> for DaZeus<'a, T> where
    T: Read + Write
[src]

Try to send a request to DaZeus

Send a request to DaZeus and retrieve a Future in which the response will be contained.

Unsubscribe a listener for some event.

Remove all subscriptions for a specific event type.

Check if there is any active listener for the given event type.

Retrieve the networks the bot is connected to.

Retrieve the channels the bot is in for a given network.

Send a message to a specific channel using the PRIVMSG method.

Send a CTCP NOTICE to a specific channel.

Send a CTCP REQUEST to a specific channel.

Send a CTCP REPLY to a specific channel.

Send a CTCP ACTION to a specific channel

Send a request for the list of nicks in a channel.

Note that the response will not contain the names data, instead listen for a names event. The Response will only indicate whether or not the request has been submitted successfully. The server may respond with an EventType::Names event any time after this request has been submitted.

Send a request for a whois of a specific nick on some network.

Note that the response will not contain the whois data, instead listen for a whois event. The Response will only indicate whether or not the request has been submitted successfully. The server may respond with an EventType::Whois event any time after this request has been submitted.

Try to join a channel on some network.

Try to leave a channel on some network.

Retrieve the nickname of the bot on the given network.

Send a handshake to the DaZeus core.

Retrieve a config value from the DaZeus config.

Retrieve the character that is used by the bot for highlighting.

Retrieve a property stored in the bot database.

Set a property to be stored in the bot database.

Remove a property stored in the bot database.

Retrieve a list of keys starting with the common prefix with the given scope.

Set a permission to either allow or deny for a specific scope.

Retrieve whether for some scope the given permission was set.

Will return the default if it was not.

Remove a set permission from the bot.

Send a whois request and wait for an event that answers this request (blocking).

Note that the IRC server may not respond to the whois request (if it has been configured this way), in which case this request will block forever.

Send a names request and wait for an event that answers this request (blocking).

Note that the IRC server may not respond to the names request (if it has been configured this way), in which case this request will block forever.

Send a reply in response to some event.

Note that not all types of events can be responded to. Mostly message type events concerning some IRC user can be responded to. Join events can also be responded to.

Send a reply (as a notice) in response to some event.

Note that not all types of events can be responded to. Mostly message type events concerning some IRC user can be responded to. Join events can also be responded to.

Send a reply (as a ctcp action) in response to some event.

Note that not all types of events can be responded to. Mostly message type events concerning some IRC user can be responded to. Join events can also be responded to.