Struct hiirc::Irc [] [src]

pub struct Irc {
    // some fields omitted
}

Contains the connection to the server and the data about channels and users.

Methods

impl Irc
[src]

fn channel(&self, name: &str) -> Option<Arc<Channel>>

Get a channel by name.

fn channels(&self) -> Vec<Arc<Channel>>

Get the list of channels.

fn is_closed(&self) -> bool

Check if the underlying connection is closed.

fn close(&self) -> Result<()Error>

Close the underlying connection.

Trait Implementations

impl IrcWrite for Irc
[src]

fn raw<S: AsRef<str>>(&self, raw: S) -> Result<()Error>

Send a raw message. A newline is added for you. Read more

fn nick(&self, nickname: &str) -> Result<()Error>

NICK command.

fn user(&self, username: &str, realname: &str) -> Result<()Error>

USER command.

fn ping(&self, server: &str) -> Result<()Error>

PING command.

fn pong(&self, server: &str) -> Result<()Error>

PONG command.

fn pass(&self, password: &str) -> Result<()Error>

PASS command.

fn privmsg(&self, target: &str, text: &str) -> Result<()Error>

PRIVMSG command.

fn notice(&self, target: &str, text: &str) -> Result<()Error>

NOTICE command.

fn join(&self, channel: &str, password: Option<&str>) -> Result<()Error>

JOIN command.

fn part(&self, channel: &str, message: Option<&str>) -> Result<()Error>

PART command.

fn quit(&self, message: Option<&str>) -> Result<()Error>

QUIT command.

fn get_topic(&self, channel: &str) -> Result<()Error>

Retrive the topic of a given channel. Read more

fn set_topic(&self, channel: &str, topic: &str) -> Result<()Error>

Set the topic of a channel. Read more

fn kick(&self, channel: &str, nickname: &str) -> Result<()Error>

KICK command.

impl NickServ for Irc
[src]

fn identify(&self, password: &str) -> Result<()Error>

Send an identify message to the nick server. Read more