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