[][src]Trait hexavalent::event::Event

pub trait Event<'a>: EventImpl<'a> where
    Self::Args: From<Self::ArgsImpl>,
    Self::Args: Into<Self::ArgsImpl>, 
{ type Args: AsRef<[&'a str]>; }

Trait implemented by all event types.

See the PrintEvent and ServerEvent traits for usage.

This trait is sealed and cannot be implemented outside of hexavalent.

Associated Types

type Args: AsRef<[&'a str]>[src]

The arguments associated with this event.

Loading content...

Implementors

impl<'a> Event<'a> for CloseContext[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for DccChatText[src]

type Args = [&'a str; 4]

Address,

Port,

Nick,

The Message,

impl<'a> Event<'a> for FocusTab[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for FocusWindow[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for KeyPress[src]

type Args = [&'a str; 4]

Key Value,

State Bitfield (shift, capslock, alt),

String version of the key,

Length of the string (may be 0 for unprintable keys),

impl<'a> Event<'a> for OpenContext[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for AddNotify[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for BanList[src]

type Args = [&'a str; 4]

Channel,

Banmask,

Who set the ban,

Ban time,

impl<'a> Event<'a> for Banned[src]

type Args = [&'a str; 1]

Channel Name,

impl<'a> Event<'a> for Beep[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for CapabilityAcknowledgement[src]

type Args = [&'a str; 2]

Server Name,

Acknowledged Capabilities,

impl<'a> Event<'a> for CapabilityDeleted[src]

type Args = [&'a str; 2]

Server Name,

Removed Capabilities,

impl<'a> Event<'a> for CapabilityList[src]

type Args = [&'a str; 2]

Server Name,

Server Capabilities,

impl<'a> Event<'a> for CapabilityRequest[src]

type Args = [&'a str; 1]

Requested Capabilities,

impl<'a> Event<'a> for ChangeNick[src]

type Args = [&'a str; 2]

Old nickname,

New nickname,

impl<'a> Event<'a> for ChannelAction[src]

type Args = [&'a str; 4]

Nickname,

The action,

Mode char,

Identified text,

impl<'a> Event<'a> for ChannelActionHilight[src]

type Args = [&'a str; 4]

Nickname,

The action,

Mode char,

Identified text,

impl<'a> Event<'a> for ChannelBan[src]

type Args = [&'a str; 2]

The nick of the person who did the banning,

The ban mask,

impl<'a> Event<'a> for ChannelCreation[src]

type Args = [&'a str; 2]

The channel,

The time,

impl<'a> Event<'a> for ChannelDehalfop[src]

type Args = [&'a str; 2]

The nick of the person who did the dehalfop'ing,

The nick of the person who has been dehalfop'ed,

impl<'a> Event<'a> for ChannelDeop[src]

type Args = [&'a str; 2]

The nick of the person who did the deop'ing,

The nick of the person who has been deop'ed,

impl<'a> Event<'a> for ChannelDevoice[src]

type Args = [&'a str; 2]

The nick of the person who did the devoice'ing,

The nick of the person who has been devoice'ed,

impl<'a> Event<'a> for ChannelExempt[src]

type Args = [&'a str; 2]

The nick of the person who did the exempt,

The exempt mask,

impl<'a> Event<'a> for ChannelHalfOperator[src]

type Args = [&'a str; 2]

The nick of the person who has been halfop'ed,

The nick of the person who did the halfop'ing,

impl<'a> Event<'a> for ChannelInvite[src]

type Args = [&'a str; 2]

The nick of the person who did the invite,

The invite mask,

impl<'a> Event<'a> for ChannelList[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for ChannelMessage[src]

type Args = [&'a str; 4]

Nickname,

The text,

Mode char,

Identified text,

impl<'a> Event<'a> for ChannelModeGeneric[src]

type Args = [&'a str; 4]

The nick of the person setting the mode,

The mode's sign (+/-),

The mode letter,

The channel it's being set on,

impl<'a> Event<'a> for ChannelModes[src]

type Args = [&'a str; 2]

Channel Name,

Modes string,

impl<'a> Event<'a> for ChannelMsgHilight[src]

type Args = [&'a str; 4]

Nickname,

The text,

Mode char,

Identified text,

impl<'a> Event<'a> for ChannelNotice[src]

type Args = [&'a str; 3]

Who it's from,

The Channel it's going to,

The message,

impl<'a> Event<'a> for ChannelOperator[src]

type Args = [&'a str; 2]

The nick of the person who did the op'ing,

The nick of the person who has been op'ed,

impl<'a> Event<'a> for ChannelQuiet[src]

type Args = [&'a str; 2]

The nick of the person who did the quieting,

The quiet mask,

impl<'a> Event<'a> for ChannelRemoveExempt[src]

type Args = [&'a str; 2]

The nick of the person removed the exempt,

The exempt mask,

impl<'a> Event<'a> for ChannelRemoveInvite[src]

type Args = [&'a str; 2]

The nick of the person removed the invite,

The invite mask,

impl<'a> Event<'a> for ChannelRemoveKeyword[src]

type Args = [&'a str; 1]

The nick who removed the key,

impl<'a> Event<'a> for ChannelRemoveLimit[src]

type Args = [&'a str; 1]

The nick who removed the limit,

impl<'a> Event<'a> for ChannelSetKey[src]

type Args = [&'a str; 2]

The nick of the person who set the key,

The key,

impl<'a> Event<'a> for ChannelSetLimit[src]

type Args = [&'a str; 2]

The nick of the person who set the limit,

The limit,

impl<'a> Event<'a> for ChannelUnban[src]

type Args = [&'a str; 2]

The nick of the person who did the unban'ing,

The ban mask,

impl<'a> Event<'a> for ChannelUnquiet[src]

type Args = [&'a str; 2]

The nick of the person who did the unquiet'ing,

The quiet mask,

impl<'a> Event<'a> for ChannelUrl[src]

type Args = [&'a str; 2]

Channel Name,

URL,

impl<'a> Event<'a> for ChannelVoice[src]

type Args = [&'a str; 2]

The nick of the person who did the voice'ing,

The nick of the person who has been voice'ed,

impl<'a> Event<'a> for Connected[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for Connecting[src]

type Args = [&'a str; 3]

Host,

IP,

Port,

impl<'a> Event<'a> for ConnectionFailed[src]

type Args = [&'a str; 1]

Error,

impl<'a> Event<'a> for CtcpGeneric[src]

type Args = [&'a str; 2]

The CTCP event,

The nick of the person,

impl<'a> Event<'a> for CtcpGenericToChannel[src]

type Args = [&'a str; 3]

The CTCP event,

The nick of the person,

The Channel it's going to,

impl<'a> Event<'a> for CtcpSend[src]

type Args = [&'a str; 2]

Receiver,

Message,

impl<'a> Event<'a> for CtcpSound[src]

type Args = [&'a str; 3]

The sound,

The nick of the person,

The channel,

impl<'a> Event<'a> for CtcpSoundToChannel[src]

type Args = [&'a str; 3]

The sound,

The nick of the person,

The channel,

impl<'a> Event<'a> for DccChatAbort[src]

type Args = [&'a str; 1]

Nickname,

impl<'a> Event<'a> for DccChatConnect[src]

type Args = [&'a str; 2]

Nickname,

IP address,

impl<'a> Event<'a> for DccChatFailed[src]

type Args = [&'a str; 4]

Nickname,

IP address,

Port,

Error,

impl<'a> Event<'a> for DccChatOffer[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for DccChatOffering[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for DccChatReoffer[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for DccConectionFailed[src]

type Args = [&'a str; 3]

DCC Type,

Nickname,

Error,

impl<'a> Event<'a> for DccGenericOffer[src]

type Args = [&'a str; 2]

DCC String,

Nickname,

impl<'a> Event<'a> for DccHeader[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for DccMalformed[src]

type Args = [&'a str; 2]

Nickname,

The Packet,

impl<'a> Event<'a> for DccOffer[src]

type Args = [&'a str; 3]

Filename,

Nickname,

Pathname,

impl<'a> Event<'a> for DccOfferNotValid[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for DccRecvAbort[src]

type Args = [&'a str; 2]

Nickname,

Filename,

impl<'a> Event<'a> for DccRecvComplete[src]

type Args = [&'a str; 4]

Filename,

Destination filename,

Nickname,

CPS,

impl<'a> Event<'a> for DccRecvConnect[src]

type Args = [&'a str; 3]

Nickname,

IP address,

Filename,

impl<'a> Event<'a> for DccRecvFailed[src]

type Args = [&'a str; 4]

Filename,

Destination filename,

Nickname,

Error,

impl<'a> Event<'a> for DccRecvFileOpenError[src]

type Args = [&'a str; 2]

Filename,

Error,

impl<'a> Event<'a> for DccRename[src]

type Args = [&'a str; 2]

Old Filename,

New Filename,

impl<'a> Event<'a> for DccResumeRequest[src]

type Args = [&'a str; 3]

Nickname,

Filename,

Position,

impl<'a> Event<'a> for DccSendAbort[src]

type Args = [&'a str; 2]

Nickname,

Filename,

impl<'a> Event<'a> for DccSendComplete[src]

type Args = [&'a str; 3]

Filename,

Nickname,

CPS,

impl<'a> Event<'a> for DccSendConnect[src]

type Args = [&'a str; 3]

Nickname,

IP address,

Filename,

impl<'a> Event<'a> for DccSendFailed[src]

type Args = [&'a str; 3]

Filename,

Nickname,

Error,

impl<'a> Event<'a> for DccSendOffer[src]

type Args = [&'a str; 4]

Nickname,

Filename,

Size,

IP address,

impl<'a> Event<'a> for DccStall[src]

type Args = [&'a str; 3]

DCC Type,

Filename,

Nickname,

impl<'a> Event<'a> for DccTimeout[src]

type Args = [&'a str; 3]

DCC Type,

Filename,

Nickname,

impl<'a> Event<'a> for DeleteNotify[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for Disconnected[src]

type Args = [&'a str; 1]

Error,

impl<'a> Event<'a> for FoundIp[src]

type Args = [&'a str; 1]

IP,

impl<'a> Event<'a> for GenericMessage[src]

type Args = [&'a str; 2]

Left message,

Right message,

impl<'a> Event<'a> for IgnoreAdd[src]

type Args = [&'a str; 1]

Hostmask,

impl<'a> Event<'a> for IgnoreChanged[src]

type Args = [&'a str; 1]

Hostmask,

impl<'a> Event<'a> for IgnoreFooter[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for IgnoreHeader[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for IgnoreRemove[src]

type Args = [&'a str; 1]

Hostmask,

impl<'a> Event<'a> for IgnorelistEmpty[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for hexavalent::event::print::Invite[src]

type Args = [&'a str; 1]

Channel Name,

impl<'a> Event<'a> for Invited[src]

type Args = [&'a str; 3]

Channel Name,

Nick of person who invited you,

Server Name,

impl<'a> Event<'a> for hexavalent::event::print::Join[src]

type Args = [&'a str; 4]

The nick of the joining person,

The channel being joined,

The host of the person,

The account of the person,

impl<'a> Event<'a> for Keyword[src]

type Args = [&'a str; 1]

Channel Name,

impl<'a> Event<'a> for hexavalent::event::print::Kick[src]

type Args = [&'a str; 4]

The nickname of the kicker,

The person being kicked,

The channel,

The reason,

impl<'a> Event<'a> for Killed[src]

type Args = [&'a str; 2]

Nickname,

Reason,

impl<'a> Event<'a> for MessageSend[src]

type Args = [&'a str; 2]

Receiver,

Message,

impl<'a> Event<'a> for Motd[src]

type Args = [&'a str; 3]

Text,

Server Name,

Raw Numeric or Identifier,

impl<'a> Event<'a> for MotdSkipped[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for NickClash[src]

type Args = [&'a str; 2]

Nickname in use,

Nick being tried,

impl<'a> Event<'a> for NickErroneous[src]

type Args = [&'a str; 2]

Nickname in use,

Nick being tried,

impl<'a> Event<'a> for NickFailed[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for NoDcc[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for NoRunningProcess[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for hexavalent::event::print::Notice[src]

type Args = [&'a str; 2]

Who it's from,

The message,

impl<'a> Event<'a> for NoticeSend[src]

type Args = [&'a str; 2]

Receiver,

Message,

impl<'a> Event<'a> for NotifyAway[src]

type Args = [&'a str; 2]

Nickname,

Away Reason,

impl<'a> Event<'a> for NotifyBack[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for NotifyEmpty[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for NotifyHeader[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for NotifyNumber[src]

type Args = [&'a str; 1]

Number of notify items,

impl<'a> Event<'a> for NotifyOffline[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for NotifyOnline[src]

type Args = [&'a str; 3]

Nickname,

Server Name,

Network,

impl<'a> Event<'a> for OpenDialog[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for hexavalent::event::print::Part[src]

type Args = [&'a str; 3]

The nick of the person leaving,

The host of the person,

The channel,

impl<'a> Event<'a> for PartWithReason[src]

type Args = [&'a str; 4]

The nick of the person leaving,

The host of the person,

The channel,

The reason,

impl<'a> Event<'a> for PingReply[src]

type Args = [&'a str; 2]

Who it's from,

The time in x.x format (see below),

impl<'a> Event<'a> for PingTimeout[src]

type Args = [&'a str; 1]

Seconds,

impl<'a> Event<'a> for PrivateAction[src]

type Args = [&'a str; 3]

Nickname,

The message,

Identified text,

impl<'a> Event<'a> for PrivateActionToDialog[src]

type Args = [&'a str; 3]

Nickname,

The message,

Identified text,

impl<'a> Event<'a> for PrivateMessage[src]

type Args = [&'a str; 3]

Nickname,

The message,

Identified text,

impl<'a> Event<'a> for PrivateMessageToDialog[src]

type Args = [&'a str; 3]

Nickname,

The message,

Identified text,

impl<'a> Event<'a> for ProcessAlreadyRunning[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for hexavalent::event::print::Quit[src]

type Args = [&'a str; 3]

Nick,

Reason,

Host,

impl<'a> Event<'a> for RawModes[src]

type Args = [&'a str; 2]

Nickname,

Modes string,

impl<'a> Event<'a> for ReceiveWallops[src]

type Args = [&'a str; 3]

Nickname,

The message,

Identified text,

impl<'a> Event<'a> for ResolvingUser[src]

type Args = [&'a str; 2]

Nickname,

Hostname,

impl<'a> Event<'a> for SaslAuthenticating[src]

type Args = [&'a str; 2]

Username,

Mechanism,

impl<'a> Event<'a> for SaslResponse[src]

type Args = [&'a str; 4]

Server Name,

Raw Numeric or Identifier,

Username,

Message,

impl<'a> Event<'a> for ServerConnected[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for ServerError[src]

type Args = [&'a str; 1]

Text,

impl<'a> Event<'a> for ServerLookup[src]

type Args = [&'a str; 1]

Server Name,

impl<'a> Event<'a> for ServerNotice[src]

type Args = [&'a str; 3]

Text,

Server Name,

Raw Numeric or Identifier,

impl<'a> Event<'a> for ServerText[src]

type Args = [&'a str; 3]

Text,

Server Name,

Raw Numeric or Identifier,

impl<'a> Event<'a> for SslMessage[src]

type Args = [&'a str; 2]

Text,

Server Name,

impl<'a> Event<'a> for StopConnection[src]

type Args = [&'a str; 1]

PID,

impl<'a> Event<'a> for hexavalent::event::print::Topic[src]

type Args = [&'a str; 2]

Channel,

Topic,

impl<'a> Event<'a> for TopicChange[src]

type Args = [&'a str; 3]

Nick of person who changed the topic,

Topic,

Channel,

impl<'a> Event<'a> for TopicCreation[src]

type Args = [&'a str; 3]

The channel,

The creator,

The time,

impl<'a> Event<'a> for UnknownHost[src]

type Args = [&'a str; 0]

impl<'a> Event<'a> for UserLimit[src]

type Args = [&'a str; 1]

Channel Name,

impl<'a> Event<'a> for UsersOnChannel[src]

type Args = [&'a str; 2]

Channel Name,

Users,

impl<'a> Event<'a> for WhoisAuthenticated[src]

type Args = [&'a str; 3]

Nickname,

Message,

Account,

impl<'a> Event<'a> for WhoisAwayLine[src]

type Args = [&'a str; 2]

Nickname,

Away reason,

impl<'a> Event<'a> for WhoisChannelOperLine[src]

type Args = [&'a str; 2]

Nickname,

Channel Membership/"is an IRC operator",

impl<'a> Event<'a> for WhoisEnd[src]

type Args = [&'a str; 1]

Nickname,

impl<'a> Event<'a> for WhoisIdentified[src]

type Args = [&'a str; 3]

Nickname,

Message,

Numeric,

impl<'a> Event<'a> for WhoisIdleLine[src]

type Args = [&'a str; 2]

Nickname,

Idle time,

impl<'a> Event<'a> for WhoisIdleLineWithSignon[src]

type Args = [&'a str; 3]

Nickname,

Idle time,

Signon time,

impl<'a> Event<'a> for WhoisNameLine[src]

type Args = [&'a str; 4]

Nickname,

Username,

Host,

Full name,

impl<'a> Event<'a> for WhoisRealHost[src]

type Args = [&'a str; 4]

Nickname,

Real user@host,

Real IP,

Message,

impl<'a> Event<'a> for WhoisServerLine[src]

type Args = [&'a str; 2]

Nickname,

Server Information,

impl<'a> Event<'a> for WhoisSpecial[src]

type Args = [&'a str; 3]

Nickname,

Message,

Numeric,

impl<'a> Event<'a> for YouJoin[src]

type Args = [&'a str; 4]

The nick of the joining person,

The channel being joined,

The host of the person,

The account of the person,

impl<'a> Event<'a> for YouKicked[src]

type Args = [&'a str; 4]

The person being kicked,

The channel,

The nickname of the kicker,

The reason,

impl<'a> Event<'a> for YouPart[src]

type Args = [&'a str; 3]

The nick of the person leaving,

The host of the person,

The channel,

impl<'a> Event<'a> for YouPartWithReason[src]

type Args = [&'a str; 4]

The nick of the person leaving,

The host of the person,

The channel,

The reason,

impl<'a> Event<'a> for YourAction[src]

type Args = [&'a str; 4]

Nickname,

The action,

Mode char,

Identified text,

impl<'a> Event<'a> for YourInvitation[src]

type Args = [&'a str; 3]

Nick of person who have been invited,

Channel Name,

Server Name,

impl<'a> Event<'a> for YourMessage[src]

type Args = [&'a str; 4]

Nickname,

The text,

Mode char,

Identified text,

impl<'a> Event<'a> for YourNickChanging[src]

type Args = [&'a str; 2]

Old nickname,

New nickname,

impl<'a> Event<'a> for RawLine[src]

type Args = [&'a str; 3]

Sender,

Command,

Arguments,

impl<'a> Event<'a> for Away[src]

type Args = [&'a str; 3]

Sender,

"AWAY",

Reason,

impl<'a> Event<'a> for hexavalent::event::server::Invite[src]

type Args = [&'a str; 4]

Sender,

"INVITE",

Target,

Channel,

impl<'a> Event<'a> for hexavalent::event::server::Join[src]

type Args = [&'a str; 5]

Sender,

"JOIN",

Channel,

Account,

Realname,

impl<'a> Event<'a> for hexavalent::event::server::Kick[src]

type Args = [&'a str; 5]

Sender,

"KICK",

Channel,

Target,

Reason,

impl<'a> Event<'a> for Kill[src]

type Args = [&'a str; 4]

Sender,

"KILL",

Target,

Reason,

impl<'a> Event<'a> for Mode[src]

type Args = [&'a str; 5]

Sender,

"MODE",

Target,

Modes,

Arguments,

impl<'a> Event<'a> for Nick[src]

type Args = [&'a str; 3]

Sender,

"NICK",

Nickname,

impl<'a> Event<'a> for hexavalent::event::server::Notice[src]

type Args = [&'a str; 4]

Sender,

"NOTICE",

Target,

Text,

impl<'a> Event<'a> for hexavalent::event::server::Part[src]

type Args = [&'a str; 4]

Sender,

"PART",

Channel,

Reason,

impl<'a> Event<'a> for Ping[src]

type Args = [&'a str; 3]

Sender,

"PING",

Server,

impl<'a> Event<'a> for Pong[src]

type Args = [&'a str; 4]

Sender,

"PONG",

Server,

Timestamp,

impl<'a> Event<'a> for Privmsg[src]

type Args = [&'a str; 4]

Sender,

"PRIVMSG",

Target,

Text,

impl<'a> Event<'a> for hexavalent::event::server::Quit[src]

type Args = [&'a str; 3]

Sender,

"QUIT",

Reason,

impl<'a> Event<'a> for hexavalent::event::server::Topic[src]

type Args = [&'a str; 4]

Sender,

"TOPIC",

Target,

Topic,

impl<'a> Event<'a> for Wallops[src]

type Args = [&'a str; 3]

Sender,

"WALLOPS",

Text,

Loading content...