[][src]Enum irc_proto::mode::ChannelMode

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

Channel modes for the MODE command.

Variants

Ban

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

Exception

e - exemptions from bans

Limit

l - limit the maximum number of users in a channel

InviteOnly

i - channel becomes invite-only

InviteException

I - exception to invite-only rule

Key

k - specify channel key

Moderated

m - channel is in moderated mode

RegisteredOnly

r - entry for registered users only

Secret

s - channel is hidden from listings

ProtectedTopic

t - require permissions to edit topic

NoExternalMessages

n - users must join channels to message them

Founder

q - user gets founder permission

Admin

a - user gets admin or protected permission

Oper

o - user gets oper permission

Halfop

h - user gets halfop permission

Voice

v - user gets voice permission

Unknown(char)

Any other unknown-to-the-crate mode.

Trait Implementations

impl Clone for ChannelMode[src]

impl Debug for ChannelMode[src]

impl Display for ChannelMode[src]

impl ModeType for ChannelMode[src]

impl PartialEq<ChannelMode> for ChannelMode[src]

impl StructuralPartialEq for ChannelMode[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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.