Enum irc_proto::mode::ChannelMode
source · pub enum ChannelMode {
Show 17 variants
Ban,
Exception,
Limit,
InviteOnly,
InviteException,
Key,
Moderated,
RegisteredOnly,
Secret,
ProtectedTopic,
NoExternalMessages,
Founder,
Admin,
Oper,
Halfop,
Voice,
Unknown(char),
}
Expand description
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§
source§impl Clone for ChannelMode
impl Clone for ChannelMode
source§fn clone(&self) -> ChannelMode
fn clone(&self) -> ChannelMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChannelMode
impl Debug for ChannelMode
source§impl Display for ChannelMode
impl Display for ChannelMode
source§impl ModeType for ChannelMode
impl ModeType for ChannelMode
source§impl PartialEq for ChannelMode
impl PartialEq for ChannelMode
source§fn eq(&self, other: &ChannelMode) -> bool
fn eq(&self, other: &ChannelMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChannelMode
Auto Trait Implementations§
impl Freeze for ChannelMode
impl RefUnwindSafe for ChannelMode
impl Send for ChannelMode
impl Sync for ChannelMode
impl Unpin for ChannelMode
impl UnwindSafe for ChannelMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more