Enum irc::proto::mode::UserMode
[−]
[src]
pub enum UserMode { Away, Invisible, Wallops, Restricted, Oper, LocalOper, ServerNotices, MaskedHost, Unknown(char), }
User modes for the MODE command.
Variants
Away
a - user is flagged as away
Invisible
i - marks a users as invisible
Wallops
w - user receives wallops
Restricted
r - restricted user connection
Oper
o - operator flag
LocalOper
O - local operator flag
ServerNotices
s - marks a user for receipt of server notices
MaskedHost
x - masked hostname
Unknown(char)
Any other unknown-to-the-crate mode.
Trait Implementations
impl Clone for UserMode
[src]
fn clone(&self) -> UserMode
[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 UserMode
[src]
impl PartialEq for UserMode
[src]
fn eq(&self, __arg_0: &UserMode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UserMode) -> bool
[src]
This method tests for !=
.
impl ModeType for UserMode
[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.