Enum irc::proto::mode::ChannelMode
[−]
[src]
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]
fn clone(&self) -> ChannelMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ChannelMode
[src]
impl PartialEq for ChannelMode
[src]
fn eq(&self, __arg_0: &ChannelMode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ChannelMode) -> bool
[src]
This method tests for !=
.
impl ModeType for ChannelMode
[src]
fn mode(target: &str, modes: &[Mode<Self>]) -> Command
[src]
Creates a command of this kind.
fn takes_arg(&self) -> bool
[src]
Returns true if this mode takes an argument, and false otherwise.