[][src]Enum hexchat::server_event::PrivmsgTarget

pub enum PrivmsgTarget {
    User(IrcIdent),
    Channel {
        channel_name: IrcIdent,
        channel: ChannelRef,
    },
    HostMask(IrcIdent),
    ServerMask(IrcIdent),
}

An enumeration of the possible targets for a PRIVMSG.

Variants

User(IrcIdent)

The PRIVMSG was sent to a user.

Channel

The PRIVMSG was sent to a channel.

Fields of Channel

channel_name: IrcIdent

The name of the channel the message was sent to.

channel: ChannelRef

The channel the message was sent to.

HostMask(IrcIdent)

The PRIVMSG was sent to a hostmask.

ServerMask(IrcIdent)

The PRIVMSG was sent to a servermask.

Trait Implementations

impl Clone for PrivmsgTarget[src]

impl Debug for PrivmsgTarget[src]

impl Eq for PrivmsgTarget[src]

impl PartialEq<PrivmsgTarget> for PrivmsgTarget[src]

impl StructuralEq for PrivmsgTarget[src]

impl StructuralPartialEq for PrivmsgTarget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.