#[repr(u16)]
pub enum Response {
Show 169 variants RPL_WELCOME = 1, RPL_YOURHOST = 2, RPL_CREATED = 3, RPL_MYINFO = 4, RPL_ISUPPORT = 5, RPL_BOUNCE = 10, RPL_NONE = 300, RPL_USERHOST = 302, RPL_ISON = 303, RPL_AWAY = 301, RPL_UNAWAY = 305, RPL_NOWAWAY = 306, RPL_WHOISUSER = 311, RPL_WHOISSERVER = 312, RPL_WHOISOPERATOR = 313, RPL_WHOISIDLE = 317, RPL_ENDOFWHOIS = 318, RPL_WHOISCHANNELS = 319, RPL_WHOWASUSER = 314, RPL_ENDOFWHOWAS = 369, RPL_LISTSTART = 321, RPL_LIST = 322, RPL_LISTEND = 323, RPL_UNIQOPIS = 325, RPL_CHANNELMODEIS = 324, RPL_NOTOPIC = 331, RPL_TOPIC = 332, RPL_TOPICWHOTIME = 333, RPL_INVITING = 341, RPL_SUMMONING = 342, RPL_INVITELIST = 346, RPL_ENDOFINVITELIST = 347, RPL_EXCEPTLIST = 348, RPL_ENDOFEXCEPTLIST = 349, RPL_VERSION = 351, RPL_WHOREPLY = 352, RPL_ENDOFWHO = 315, RPL_NAMREPLY = 353, RPL_ENDOFNAMES = 366, RPL_LINKS = 364, RPL_ENDOFLINKS = 365, RPL_BANLIST = 367, RPL_ENDOFBANLIST = 368, RPL_INFO = 371, RPL_ENDOFINFO = 374, RPL_MOTDSTART = 375, RPL_MOTD = 372, RPL_ENDOFMOTD = 376, RPL_YOUREOPER = 381, RPL_REHASHING = 382, RPL_YOURESERVICE = 383, RPL_TIME = 391, RPL_USERSSTART = 392, RPL_USERS = 393, RPL_ENDOFUSERS = 394, RPL_NOUSERS = 395, RPL_HOSTHIDDEN = 396, RPL_TRACELINK = 200, RPL_TRACECONNECTING = 201, RPL_TRACEHANDSHAKE = 202, RPL_TRACEUKNOWN = 203, RPL_TRACEOPERATOR = 204, RPL_TRACEUSER = 205, RPL_TRACESERVER = 206, RPL_TRACESERVICE = 207, RPL_TRACENEWTYPE = 208, RPL_TRACECLASS = 209, RPL_TRACERECONNECT = 210, RPL_TRACELOG = 261, RPL_TRACEEND = 262, RPL_STATSLINKINFO = 211, RPL_STATSCOMMANDS = 212, RPL_ENDOFSTATS = 219, RPL_STATSUPTIME = 242, RPL_STATSOLINE = 243, RPL_UMODEIS = 221, RPL_SERVLIST = 234, RPL_SERVLISTEND = 235, RPL_LUSERCLIENT = 251, RPL_LUSEROP = 252, RPL_LUSERUNKNOWN = 253, RPL_LUSERCHANNELS = 254, RPL_LUSERME = 255, RPL_ADMINME = 256, RPL_ADMINLOC1 = 257, RPL_ADMINLOC2 = 258, RPL_ADMINEMAIL = 259, RPL_TRYAGAIN = 263, RPL_LOCALUSERS = 265, RPL_GLOBALUSERS = 266, RPL_WHOISCERTFP = 276, RPL_MONONLINE = 730, RPL_MONOFFLINE = 731, RPL_MONLIST = 732, RPL_ENDOFMONLIST = 733, RPL_WHOISKEYVALUE = 760, RPL_KEYVALUE = 761, RPL_METADATAEND = 762, RPL_LOGGEDIN = 900, RPL_LOGGEDOUT = 901, RPL_SASLSUCCESS = 903, RPL_SASLMECHS = 908, ERR_UNKNOWNERROR = 400, ERR_NOSUCHNICK = 401, ERR_NOSUCHSERVER = 402, ERR_NOSUCHCHANNEL = 403, ERR_CANNOTSENDTOCHAN = 404, ERR_TOOMANYCHANNELS = 405, ERR_WASNOSUCHNICK = 406, ERR_TOOMANYTARGETS = 407, ERR_NOSUCHSERVICE = 408, ERR_NOORIGIN = 409, ERR_NORECIPIENT = 411, ERR_NOTEXTTOSEND = 412, ERR_NOTOPLEVEL = 413, ERR_WILDTOPLEVEL = 414, ERR_BADMASK = 415, ERR_UNKNOWNCOMMAND = 421, ERR_NOMOTD = 422, ERR_NOADMININFO = 423, ERR_FILEERROR = 424, ERR_NONICKNAMEGIVEN = 431, ERR_ERRONEOUSNICKNAME = 432, ERR_NICKNAMEINUSE = 433, ERR_NICKCOLLISION = 436, ERR_UNAVAILRESOURCE = 437, ERR_USERNOTINCHANNEL = 441, ERR_NOTONCHANNEL = 442, ERR_USERONCHANNEL = 443, ERR_NOLOGIN = 444, ERR_SUMMONDISABLED = 445, ERR_USERSDISABLED = 446, ERR_NOTREGISTERED = 451, ERR_NEEDMOREPARAMS = 461, ERR_ALREADYREGISTRED = 462, ERR_NOPERMFORHOST = 463, ERR_PASSWDMISMATCH = 464, ERR_YOUREBANNEDCREEP = 465, ERR_YOUWILLBEBANNED = 466, ERR_KEYSET = 467, ERR_CHANNELISFULL = 471, ERR_UNKNOWNMODE = 472, ERR_INVITEONLYCHAN = 473, ERR_BANNEDFROMCHAN = 474, ERR_BADCHANNELKEY = 475, ERR_BADCHANMASK = 476, ERR_NOCHANMODES = 477, ERR_BANLISTFULL = 478, ERR_NOPRIVILEGES = 481, ERR_CHANOPRIVSNEEDED = 482, ERR_CANTKILLSERVER = 483, ERR_RESTRICTED = 484, ERR_UNIQOPPRIVSNEEDED = 485, ERR_NOOPERHOST = 491, ERR_UMODEUNKNOWNFLAG = 501, ERR_USERSDONTMATCH = 502, ERR_NOPRIVS = 723, ERR_MONLISTFULL = 734, ERR_METADATALIMIT = 764, ERR_TARGETINVALID = 765, ERR_NOMATCHINGKEY = 766, ERR_KEYINVALID = 767, ERR_KEYNOTSET = 768, ERR_KEYNOPERMISSION = 769, ERR_NICKLOCKED = 902, ERR_SASLFAIL = 904, ERR_SASLTOOLONG = 905, ERR_SASLABORT = 906, ERR_SASLALREADY = 907,
}
Expand description

List of all server responses as defined in RFC 2812 and Modern docs (henceforth referred to as Modern). All commands are documented with their expected form from the RFC, and any useful, additional information about the response code.

Variants§

§

RPL_WELCOME = 1

001 Welcome to the Internet Relay Network <nick>!<user>@<host> (Source: RFC2812)

§

RPL_YOURHOST = 2

002 Your host is <servername>, running version <ver> (Source: RFC2812)

§

RPL_CREATED = 3

003 This server was created <date> (Source: RFC2812)

§

RPL_MYINFO = 4

004 <servername> <version> <available user modes> <available channel modes> (Source: RFC2812)

Various IRCds may choose to include additional arguments to RPL_MYINFO, and it’s best to check for certain what the servers you’re targeting do. Typically, there are additional parameters at the end for modes that have parameters, and server modes.

§

RPL_ISUPPORT = 5

005 <servername> *(<feature>(=<value>)) :are supported by this server (Source: Modern)

RPL_ISUPPORT replaces RPL_BOUNCE from RFC2812, but does so consistently in modern IRCd implementations. RPL_BOUNCE has been moved to 010.

§

RPL_BOUNCE = 10

010 Try server <server name>, port <port number> (Source: Modern)

§

RPL_NONE = 300

Undefined format. (Source: Modern)

RPL_NONE is a dummy numeric. It does not have a defined use nor format.

§

RPL_USERHOST = 302

302 :*1<reply> *( " " <reply> ) (Source: RFC2812)

§

RPL_ISON = 303

303 :*1<nick> *( " " <nick> ) (Source: RFC2812)

§

RPL_AWAY = 301

301 <nick> :<away message> (Source: RFC2812)

§

RPL_UNAWAY = 305

305 :You are no longer marked as being away (Source: RFC2812)

§

RPL_NOWAWAY = 306

306 :You have been marked as being away (Source: RFC2812)

§

RPL_WHOISUSER = 311

311 <nick> <user> <host> * :<real name> (Source: RFC2812)

§

RPL_WHOISSERVER = 312

312 <nick> <server> :<server info> (Source: RFC2812)

§

RPL_WHOISOPERATOR = 313

313 <nick> :is an IRC operator (Source: RFC2812)

§

RPL_WHOISIDLE = 317

317 <nick> <integer> :seconds idle (Source: RFC2812)

§

RPL_ENDOFWHOIS = 318

318 <nick> :End of WHOIS list (Source: RFC2812)

§

RPL_WHOISCHANNELS = 319

319 <nick> :*( ( "@" / "+" ) <channel> " " ) (Source: RFC2812)

§

RPL_WHOWASUSER = 314

314 <nick> <user> <host> * :<real name> (Source: RFC2812)

§

RPL_ENDOFWHOWAS = 369

369 <nick> :End of WHOWAS (Source: RFC2812)

§

RPL_LISTSTART = 321

Obsolete. Not used. (Source: RFC2812)

§

RPL_LIST = 322

322 <channel> <# visible> :<topic> (Source: RFC2812)

§

RPL_LISTEND = 323

`323 :End of LIST (Source: RFC2812)

§

RPL_UNIQOPIS = 325

325 <channel> <nickname> (Source: RFC2812)

§

RPL_CHANNELMODEIS = 324

324 <channel> <mode> <mode params> (Source: RFC2812)

§

RPL_NOTOPIC = 331

331 <channel> :No topic is set (Source: RFC2812)

§

RPL_TOPIC = 332

332 <channel> :<topic> (Source: RFC2812)

§

RPL_TOPICWHOTIME = 333

333 <channel> <nick>!<user>@<host> <unix timestamp> (Source: RFC2812)

§

RPL_INVITING = 341

341 <channel> <nick> (Source: RFC2812)

§

RPL_SUMMONING = 342

342 <user> :Summoning user to IRC (Source: RFC2812)

According to Modern, this response is rarely implemented. In practice, people simply message one another in a channel with their specified username in the message, rather than use the SUMMON command.

§

RPL_INVITELIST = 346

346 <channel> <invitemask> (Source: RFC2812)

§

RPL_ENDOFINVITELIST = 347

347 <channel> :End of channel invite list (Source: RFC2812)

According to Modern, RPL_ENDOFEXCEPTLIST (349) is frequently deployed for this same purpose and the difference will be noted in channel mode and the statement in the suffix.

§

RPL_EXCEPTLIST = 348

348 <channel> <exceptionmask> (Source: RFC2812)

§

RPL_ENDOFEXCEPTLIST = 349

349 <channel> :End of channel exception list (Source: RFC2812)

§

RPL_VERSION = 351

351 <version> <server> :<comments> (Source: RFC2812/Modern)

§

RPL_WHOREPLY = 352

352 <channel> <user> <host> <server> <nick> ( "H" / "G" > ["*"] [ ( "@" / "+" ) ] :<hopcount> <real name> (Source: RFC2812)

§

RPL_ENDOFWHO = 315

315 <name> :End of WHO list (Source: RFC2812)

§

RPL_NAMREPLY = 353

353 ( "=" / "*" / "@" ) <channel> :[ "@" / "+" ] <nick> *( " " [ "@" / "+" ] <nick> ) (Source: RFC2812)

§

RPL_ENDOFNAMES = 366

366 <channel> :End of NAMES list (Source: RFC2812)

364 <mask> <server> :<hopcount> <server info> (Source: RFC2812)

365 <mask> :End of LINKS list (Source: RFC2812)

§

RPL_BANLIST = 367

367 <channel> <banmask> (Source: RFC2812)

§

RPL_ENDOFBANLIST = 368

368 <channel> :End of channel ban list (Source: RFC2812)

§

RPL_INFO = 371

371 :<string> (Source: RFC2812)

§

RPL_ENDOFINFO = 374

374 :End of INFO list (Source: RFC2812)

§

RPL_MOTDSTART = 375

375 :- <server> Message of the day - (Source: RFC2812)

§

RPL_MOTD = 372

372 :- <text> (Source: RFC2812)

§

RPL_ENDOFMOTD = 376

376 :End of MOTD command (Source: RFC2812)

§

RPL_YOUREOPER = 381

381 :You are now an IRC operator (Source: RFC2812)

§

RPL_REHASHING = 382

382 <config file> :Rehashing (Source: RFC2812)

§

RPL_YOURESERVICE = 383

383 You are service <servicename> (Source: RFC2812)

§

RPL_TIME = 391

391 <server> :<string showing server's local time> (Source: RFC2812)

§

RPL_USERSSTART = 392

392 :UserID Terminal Host (Source: RFC2812)

§

RPL_USERS = 393

393 :<username> <ttyline> <hostname> (Source: RFC2812)

§

RPL_ENDOFUSERS = 394

394 :End of users (Source: RFC2812)

§

RPL_NOUSERS = 395

395 :Nobody logged in (Source: RFC2812)

§

RPL_HOSTHIDDEN = 396

396 <nickname> <host> :is now your displayed host (Source: InspIRCd)

This response code is sent after a user enables the user mode +x (host masking), and it is successfully enabled. The particular format described above is from InspIRCd, but the response code should be common amongst servers that support host masks.

`200 Link <version & debug level> V

` (Source: RFC2812)
§

RPL_TRACECONNECTING = 201

201 Try. <class> <server> (Source: RFC2812)

§

RPL_TRACEHANDSHAKE = 202

202 H.S. <class> <server> (Source: RFC2812)

§

RPL_TRACEUKNOWN = 203

203 ???? <class> [<client IP address in dot form>] (Source: RFC2812)

§

RPL_TRACEOPERATOR = 204

204 Oper <class> <nick> (Source: RFC2812)

§

RPL_TRACEUSER = 205

205 User <class> <nick> (Source: RFC2812)

§

RPL_TRACESERVER = 206

206 Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version> (Source: RFC2812)

§

RPL_TRACESERVICE = 207

207 Service <class> <name> <type> <active type> (Source: RFC2812)

§

RPL_TRACENEWTYPE = 208

208 <newtype> 0 <client name> (Source: RFC2812)

§

RPL_TRACECLASS = 209

209 Class <class> <count> (Source: RFC2812)

§

RPL_TRACERECONNECT = 210

Unused. (Source: RFC2812)

§

RPL_TRACELOG = 261

261 File <logfile> <debug level> (Source: RFC2812)

§

RPL_TRACEEND = 262

262 <server name> <version & debug level> :End of TRACE (Source: RFC2812)

§

RPL_STATSLINKINFO = 211

211 <linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open> (Source: RFC2812)

§

RPL_STATSCOMMANDS = 212

212 <command> <count> <byte count> <remote count> (Source: RFC2812)

§

RPL_ENDOFSTATS = 219

219 <stats letter> :End of STATS report (Source: RFC2812)

§

RPL_STATSUPTIME = 242

242 :Server Up %d days %d:%02d:%02d (Source: RFC2812)

§

RPL_STATSOLINE = 243

243 O <hostmask> * <name> (Source: RFC2812)

§

RPL_UMODEIS = 221

221 <user mode string> (Source: RFC2812)

§

RPL_SERVLIST = 234

234 <name> <server> <mask> <type> <hopcount> <info> (Source: RFC2812)

§

RPL_SERVLISTEND = 235

235 <mask> <type> :End of service listing (Source: RFC2812)

§

RPL_LUSERCLIENT = 251

251 :There are <int> users and <int> services on <int> servers (Source: RFC2812)

§

RPL_LUSEROP = 252

252 <integer> :operator(s) online (Source: RFC2812)

§

RPL_LUSERUNKNOWN = 253

253 <integer> :unknown connection(s) (Source: RFC2812)

§

RPL_LUSERCHANNELS = 254

254 <integer> :channels formed (Source: RFC2812)

§

RPL_LUSERME = 255

255 :I have <integer> clients and <integer> servers (Source: RFC2812)

§

RPL_ADMINME = 256

256 <server> :Administrative info (Source: RFC2812)

§

RPL_ADMINLOC1 = 257

257 :<admin info> (Source: RFC2812)

§

RPL_ADMINLOC2 = 258

258 :<admin info> (Source: RFC2812)

§

RPL_ADMINEMAIL = 259

259 :<admin info> (Source: RFC2812)

§

RPL_TRYAGAIN = 263

263 <command> :Please wait a while and try again. (Source: RFC2812)

§

RPL_LOCALUSERS = 265

265 <client> [<u> <m>] :Current local users <u>, max <m> (Source: Modern)

§

RPL_GLOBALUSERS = 266

266 <client> [<u> <m>] :Current local users <u>, max <m> (Source: Modern)

§

RPL_WHOISCERTFP = 276

276 <client> <nick> :has client certificate fingerprint <fingerprint> (Source: Modern)

§

RPL_MONONLINE = 730

730 <nick> :target[,target2]* (Source: RFC2812)

§

RPL_MONOFFLINE = 731

731 <nick> :target[,target2]* (Source: RFC2812)

§

RPL_MONLIST = 732

732 <nick> :target[,target2]* (Source: RFC2812)

§

RPL_ENDOFMONLIST = 733

733 <nick> :End of MONITOR list (Source: RFC2812)

§

RPL_WHOISKEYVALUE = 760

760 <target> <key> <visibility> :<value> (Source: RFC2812)

§

RPL_KEYVALUE = 761

761 <target> <key> <visibility> :[<value>] (Source: RFC2812)

§

RPL_METADATAEND = 762

762 :end of metadata (Source: RFC2812)

§

RPL_LOGGEDIN = 900

900 <nick> <nick>!<ident>@<host> <account> :You are now logged in as <user> (Source: IRCv3)

§

RPL_LOGGEDOUT = 901

901 <nick> <nick>!<ident>@<host> :You are now logged out (Source: IRCv3)

§

RPL_SASLSUCCESS = 903

903 <nick> :SASL authentication successful (Source: IRCv3)

§

RPL_SASLMECHS = 908

908 <nick> <mechanisms> :are available SASL mechanisms (Source: IRCv3)

§

ERR_UNKNOWNERROR = 400

400 <client> <command>{ <subcommand>} :<info> (Source: Modern)

According to Modern, this error will be returned when the given command/subcommand could not be processed. It’s a very general error, and should only be used when more specific numerics do not suffice.

§

ERR_NOSUCHNICK = 401

401 <nickname> :No such nick/channel (Source: RFC2812)

§

ERR_NOSUCHSERVER = 402

402 <server name> :No such server (Source: RFC2812)

§

ERR_NOSUCHCHANNEL = 403

403 <channel name> :No such channel (Source: RFC2812)

§

ERR_CANNOTSENDTOCHAN = 404

404 <channel name> :Cannot send to channel (Source: RFC2812)

§

ERR_TOOMANYCHANNELS = 405

405 <channel name> :You have joined too many channels (Source: RFC2812)

§

ERR_WASNOSUCHNICK = 406

406 <nickname> :There was no such nickname (Source: RFC2812)

§

ERR_TOOMANYTARGETS = 407

407 <target> :<error code> recipients. <abort message> (Source: RFC2812)

§

ERR_NOSUCHSERVICE = 408

408 <service name> :No such service (Source: RFC2812)

§

ERR_NOORIGIN = 409

409 :No origin specified (Source: RFC2812)

§

ERR_NORECIPIENT = 411

411 :No recipient given (<command>) (Source: RFC2812)

§

ERR_NOTEXTTOSEND = 412

412 :No text to send (Source: RFC2812)

§

ERR_NOTOPLEVEL = 413

413 <mask> :No toplevel domain specified (Source: RFC2812)

§

ERR_WILDTOPLEVEL = 414

414 <mask> :Wildcard in toplevel domain (Source: RFC2812)

§

ERR_BADMASK = 415

415 <mask> :Bad Server/host mask (Source: RFC2812)

§

ERR_UNKNOWNCOMMAND = 421

421 <command> :Unknown command (Source: RFC2812)

§

ERR_NOMOTD = 422

422 :MOTD File is missing (Source: RFC2812)

§

ERR_NOADMININFO = 423

423 <server> :No administrative info available (Source: RFC2812)

§

ERR_FILEERROR = 424

424 :File error doing <file op> on <file> (Source: RFC2812)

§

ERR_NONICKNAMEGIVEN = 431

431 :No nickname given (Source: RFC2812)

§

ERR_ERRONEOUSNICKNAME = 432

432 <nick> :Erroneous nickname" (Source: RFC2812)

§

ERR_NICKNAMEINUSE = 433

433 <nick> :Nickname is already in use (Source: RFC2812)

§

ERR_NICKCOLLISION = 436

436 <nick> :Nickname collision KILL from <user>@<host> (Source: RFC2812)

§

ERR_UNAVAILRESOURCE = 437

437 <nick/channel> :Nick/channel is temporarily unavailable (Source: RFC2812)

§

ERR_USERNOTINCHANNEL = 441

441 <nick> <channel> :They aren't on that channel (Source: RFC2812)

§

ERR_NOTONCHANNEL = 442

442 <channel> :You're not on that channel (Source: RFC2812)

§

ERR_USERONCHANNEL = 443

443 <user> <channel> :is already on channel (Source: RFC2812)

§

ERR_NOLOGIN = 444

444 <user> :User not logged in (Source: RFC2812)

§

ERR_SUMMONDISABLED = 445

445 :SUMMON has been disabled (Source: RFC2812)

§

ERR_USERSDISABLED = 446

446 :USERS has been disabled (Source: RFC2812)

§

ERR_NOTREGISTERED = 451

451 :You have not registered (Source: RFC2812)

§

ERR_NEEDMOREPARAMS = 461

461 <command> :Not enough parameters (Source: RFC2812)

§

ERR_ALREADYREGISTRED = 462

462 :Unauthorized command (already registered) (Source: RFC2812)

§

ERR_NOPERMFORHOST = 463

463 :Your host isn't among the privileged (Source: RFC2812)

§

ERR_PASSWDMISMATCH = 464

464 :Password incorrect (Source: RFC2812)

§

ERR_YOUREBANNEDCREEP = 465

465 :You are banned from this server (Source: RFC2812)

§

ERR_YOUWILLBEBANNED = 466

466 (Source: RFC2812)

§

ERR_KEYSET = 467

467 <channel> :Channel key already set (Source: RFC2812)

§

ERR_CHANNELISFULL = 471

471 <channel> :Cannot join channel (+l) (Source: RFC2812)

§

ERR_UNKNOWNMODE = 472

472 <char> :is unknown mode char to me for <channel> (Source: RFC2812)

§

ERR_INVITEONLYCHAN = 473

473 <channel> :Cannot join channel (+i) (Source: RFC2812)

§

ERR_BANNEDFROMCHAN = 474

474 <channel> :Cannot join channel (+b) (Source: RFC2812)

§

ERR_BADCHANNELKEY = 475

475 <channel> :Cannot join channel (+k) (Source: RFC2812)

§

ERR_BADCHANMASK = 476

476 <channel> :Bad Channel Mask (Source: RFC2812)

§

ERR_NOCHANMODES = 477

477 <channel> :Channel doesn't support modes (Source: RFC2812)

§

ERR_BANLISTFULL = 478

478 <channel> <char> :Channel list is full (Source: RFC2812)

§

ERR_NOPRIVILEGES = 481

481 :Permission Denied- You're not an IRC operator (Source: RFC2812)

§

ERR_CHANOPRIVSNEEDED = 482

482 <channel> :You're not channel operator (Source: RFC2812)

§

ERR_CANTKILLSERVER = 483

483 :You can't kill a server! (Source: RFC2812)

§

ERR_RESTRICTED = 484

484 :Your connection is restricted! (Source: RFC2812)

§

ERR_UNIQOPPRIVSNEEDED = 485

485 :You're not the original channel operator (Source: RFC2812)

§

ERR_NOOPERHOST = 491

491 :No O-lines for your host (Source: RFC2812)

§

ERR_UMODEUNKNOWNFLAG = 501

501 :Unknown MODE flag (Source: RFC2812)

§

ERR_USERSDONTMATCH = 502

502 :Cannot change mode for other users (Source: RFC2812)

§

ERR_NOPRIVS = 723

723 <client> <priv> :Insufficient oper privileges. (Source: Modern)

Sent to an operator to indicate that they don’t have the specific privileges to perform the desired action. The format and meaning of the privilege string is server-defined.

§

ERR_MONLISTFULL = 734

734 <nick> <limit> <targets> :Monitor list is full. (Source: RFC2812)

§

ERR_METADATALIMIT = 764

764 <target> :metadata limit reached (Source: RFC2812)

§

ERR_TARGETINVALID = 765

765 <target> :invalid metadata target (Source: RFC2812)

§

ERR_NOMATCHINGKEY = 766

766 <key> :no matching key (Source: RFC2812)

§

ERR_KEYINVALID = 767

767 <key> :invalid metadata key (Source: RFC2812)

§

ERR_KEYNOTSET = 768

768 <target> <key> :key not set (Source: RFC2812)

§

ERR_KEYNOPERMISSION = 769

769 <target> <key> :permission denied (Source: RFC2812)

§

ERR_NICKLOCKED = 902

902 <nick> :You must use a nick assigned to you. (Source: IRCv3)

§

ERR_SASLFAIL = 904

904 <nick> :SASL authentication failed (Source: IRCv3)

§

ERR_SASLTOOLONG = 905

905 <nick> :SASL message too long (Source: IRCv3)

§

ERR_SASLABORT = 906

906 <nick> :SASL authentication aborted (Source: IRCv3)

§

ERR_SASLALREADY = 907

907 <nick> :You have already authenticated using SASL (Source: IRCv3)

Implementations§

source§

impl Response

source

pub fn is_error(&self) -> bool

Determines whether or not this response is an error response.

This error consideration is according to RFC2812, but is rather simplistic. It considers all response codes above 400 to be errors, which misclassifies some extensions (e.g. from IRCv3) that add responses and errors both in the same range (typically 700s or 900s).

Trait Implementations§

source§

impl Clone for Response

source§

fn clone(&self) -> Response

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Response

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromStr for Response

§

type Err = &'static str

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Response, &'static str>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for Response

source§

fn eq(&self, other: &Response) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Response

source§

impl StructuralPartialEq for Response

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more