pub enum Mode<T>where
T: ModeType,{
Plus(T, Option<String>),
Minus(T, Option<String>),
}
Expand description
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.
Implementations§
Source§impl Mode<UserMode>
impl Mode<UserMode>
Sourcepub fn from_user_mode_string(
s: &str,
) -> Result<Vec<Mode<UserMode>>, MessageParseError>
pub fn from_user_mode_string( s: &str, ) -> Result<Vec<Mode<UserMode>>, MessageParseError>
Parses the specified mode string as user modes.
Source§impl Mode<ChannelMode>
impl Mode<ChannelMode>
Sourcepub fn from_channel_mode_string(
s: &str,
) -> Result<Vec<Mode<ChannelMode>>, MessageParseError>
pub fn from_channel_mode_string( s: &str, ) -> Result<Vec<Mode<ChannelMode>>, MessageParseError>
Parses the specified mode string as channel modes.
Trait Implementations§
impl<T> StructuralPartialEq for Mode<T>where
T: ModeType,
Auto Trait Implementations§
impl<T> Freeze for Mode<T>where
T: Freeze,
impl<T> RefUnwindSafe for Mode<T>where
T: RefUnwindSafe,
impl<T> Send for Mode<T>where
T: Send,
impl<T> Sync for Mode<T>where
T: Sync,
impl<T> Unpin for Mode<T>where
T: Unpin,
impl<T> UnwindSafe for Mode<T>where
T: UnwindSafe,
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