Enum irc::proto::mode::Mode[][src]

pub enum Mode<T> where
    T: ModeType
{ Plus(T, Option<String>), Minus(T, Option<String>), }

A mode argument for the MODE command.

Variants

Adding the specified mode, optionally with an argument.

Removing the specified mode, optionally with an argument.

Methods

impl<T> Mode<T> where
    T: ModeType
[src]

Creates a plus mode with an &str argument.

Creates a minus mode with an &str argument.

impl Mode<UserMode>
[src]

Parses the specified mode string as user modes.

impl Mode<ChannelMode>
[src]

Parses the specified mode string as channel modes.

Trait Implementations

impl<T: Clone> Clone for Mode<T> where
    T: ModeType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Mode<T> where
    T: ModeType
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Mode<T> where
    T: ModeType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Display for Mode<T> where
    T: ModeType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Mode<T> where
    T: Send

impl<T> Sync for Mode<T> where
    T: Sync