pub enum Reply {
Show 36 variants
Welcome {
nick: String,
network: String,
},
YourHost {
nick: String,
servername: String,
version: String,
},
Created {
nick: String,
date: String,
},
MyInfo {
nick: String,
servername: String,
version: String,
usermodes: String,
chanmodes: String,
},
ISupport {
nick: String,
tokens: Vec<String>,
},
NoTopic {
nick: String,
channel: String,
},
Topic {
nick: String,
channel: String,
topic: String,
},
NamReply {
nick: String,
symbol: char,
channel: String,
names: Vec<String>,
},
EndOfNames {
nick: String,
channel: String,
},
MotdStart {
nick: String,
server: String,
},
Motd {
nick: String,
line: String,
},
EndOfMotd {
nick: String,
},
NoMotd {
nick: String,
},
NoSuchNick {
nick: String,
target: String,
},
NoSuchChannel {
nick: String,
channel: String,
},
CannotSendToChan {
nick: String,
channel: String,
},
NotOnChannel {
nick: String,
channel: String,
},
NicknameInUse {
nick: String,
attempted: String,
},
NeedMoreParams {
nick: String,
command: String,
},
AlreadyRegistered {
nick: String,
},
UnknownCommand {
nick: String,
command: String,
},
PasswdMismatch {
nick: String,
},
NotRegistered {
nick: String,
},
ErroneousNickname {
nick: String,
attempted: String,
},
BadChannelKey {
nick: String,
channel: String,
},
ChannelIsFull {
nick: String,
channel: String,
},
ChanOpPrivsNeeded {
nick: String,
channel: String,
},
UserNotInChannel {
nick: String,
target: String,
channel: String,
},
ChannelModeIs {
nick: String,
channel: String,
modes: String,
params: Vec<String>,
},
List {
nick: String,
channel: String,
visible: usize,
topic: String,
},
EndOfWho {
nick: String,
target: String,
},
WhoisUser {
nick: String,
target: String,
username: String,
host: String,
realname: String,
},
WhoisServer {
nick: String,
target: String,
server: String,
info: String,
},
EndOfWhois {
nick: String,
target: String,
},
ListStart {
nick: String,
},
ListEnd {
nick: String,
},
}Expand description
IRC numeric replies and error codes
Variantsยง
Welcome
001 RPL_WELCOME
YourHost
002 RPL_YOURHOST
Created
003 RPL_CREATED
MyInfo
004 RPL_MYINFO
ISupport
005 RPL_ISUPPORT
NoTopic
331 RPL_NOTOPIC
Topic
332 RPL_TOPIC
NamReply
353 RPL_NAMREPLY
EndOfNames
366 RPL_ENDOFNAMES
MotdStart
375 RPL_MOTDSTART
Motd
372 RPL_MOTD
EndOfMotd
376 RPL_ENDOFMOTD
NoMotd
422 ERR_NOMOTD
NoSuchNick
401 ERR_NOSUCHNICK
NoSuchChannel
403 ERR_NOSUCHCHANNEL
CannotSendToChan
404 ERR_CANNOTSENDTOCHAN
NotOnChannel
442 ERR_NOTONCHANNEL
NicknameInUse
433 ERR_NICKNAMEINUSE
NeedMoreParams
461 ERR_NEEDMOREPARAMS
AlreadyRegistered
462 ERR_ALREADYREGISTERED
UnknownCommand
421 ERR_UNKNOWNCOMMAND
PasswdMismatch
464 ERR_PASSWDMISMATCH
NotRegistered
451 ERR_NOTREGISTERED
ErroneousNickname
432 ERR_ERRONEUSNICKNAME
BadChannelKey
475 ERR_BADCHANNELKEY
ChannelIsFull
471 ERR_CHANNELISFULL
ChanOpPrivsNeeded
482 ERR_CHANOPRIVSNEEDED
UserNotInChannel
441 ERR_USERNOTINCHANNEL
ChannelModeIs
324 RPL_CHANNELMODEIS
List
322 RPL_LIST
EndOfWho
315 RPL_ENDOFWHO
WhoisUser
311 RPL_WHOISUSER
WhoisServer
312 RPL_WHOISSERVER
EndOfWhois
318 RPL_ENDOFWHOIS
ListStart
321 RPL_LISTSTART
ListEnd
323 RPL_LISTEND
Implementationsยง
Sourceยงimpl Reply
impl Reply
Sourcepub fn to_message(&self, server_name: &str) -> IrcMessage
pub fn to_message(&self, server_name: &str) -> IrcMessage
Convert reply to IRC message
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more