Enum irc::proto::mode::Mode [−][src]
A mode argument for the MODE command.
Variants
Plus(T, Option<String>)
Adding the specified mode, optionally with an argument.
Minus(T, Option<String>)
Removing the specified mode, optionally with an argument.
Methods
impl<T> Mode<T> where
T: ModeType,
[src]
impl<T> Mode<T> where
T: ModeType,
pub fn plus(inner: T, arg: Option<&str>) -> Mode<T>
[src]
pub fn plus(inner: T, arg: Option<&str>) -> Mode<T>
Creates a plus mode with an &str
argument.
pub fn minus(inner: T, arg: Option<&str>) -> Mode<T>
[src]
pub fn minus(inner: T, arg: Option<&str>) -> Mode<T>
Creates a minus mode with an &str
argument.
impl Mode<UserMode>
[src]
impl Mode<UserMode>
pub fn as_user_modes(s: &str) -> Result<Vec<Mode<UserMode>>, MessageParseError>
[src]
pub fn as_user_modes(s: &str) -> Result<Vec<Mode<UserMode>>, MessageParseError>
Parses the specified mode string as user modes.
impl Mode<ChannelMode>
[src]
impl Mode<ChannelMode>
pub fn as_channel_modes(
s: &str
) -> Result<Vec<Mode<ChannelMode>>, MessageParseError>
[src]
pub fn as_channel_modes(
s: &str
) -> Result<Vec<Mode<ChannelMode>>, MessageParseError>
Parses the specified mode string as channel modes.
Trait Implementations
impl<T: Clone> Clone for Mode<T> where
T: ModeType,
[src]
impl<T: Clone> Clone for Mode<T> where
T: ModeType,
fn clone(&self) -> Mode<T>
[src]
fn clone(&self) -> Mode<T>
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<T: Debug> Debug for Mode<T> where
T: ModeType,
[src]
impl<T: Debug> Debug for Mode<T> where
T: ModeType,
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<T: PartialEq> PartialEq for Mode<T> where
T: ModeType,
[src]
impl<T: PartialEq> PartialEq for Mode<T> where
T: ModeType,
fn eq(&self, other: &Mode<T>) -> bool
[src]
fn eq(&self, other: &Mode<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Mode<T>) -> bool
[src]
fn ne(&self, other: &Mode<T>) -> bool
This method tests for !=
.
impl<T> Display for Mode<T> where
T: ModeType,
[src]
impl<T> Display for Mode<T> where
T: ModeType,