Enum irc::proto::mode::ChannelMode [] [src]

pub enum ChannelMode {
    Ban,
    Exception,
    Limit,
    InviteOnly,
    InviteException,
    Key,
    Moderated,
    Secret,
    ProtectedTopic,
    NoExternalMessages,
    Founder,
    Admin,
    Oper,
    Halfop,
    Voice,
    Unknown(char),
}

Channel modes for the MODE command.

Variants

b - ban the user from joining or speaking in the channel

e - exemptions from bans

l - limit the maximum number of users in a channel

i - channel becomes invite-only

I - exception to invite-only rule

k - specify channel key

m - channel is in moderated mode

s - channel is hidden from listings

t - require permissions to edit topic

n - users must join channels to message them

q - user gets founder permission

a - user gets admin or protected permission

o - user gets oper permission

h - user gets halfop permission

v - user gets voice permission

Any other unknown-to-the-crate mode.

Trait Implementations

impl Clone for ChannelMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ChannelMode
[src]

Formats the value using the given formatter.

impl PartialEq for ChannelMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl ModeType for ChannelMode
[src]

Creates a command of this kind.

Returns true if this mode takes an argument, and false otherwise.

impl Display for ChannelMode
[src]

Formats the value using the given formatter. Read more