[][src]Struct nestor::handler::Command

pub struct Command<'a> {
    pub source_nick: &'a str,
    pub command_str: String,
    pub arguments: Vec<String>,
}

Fields

source_nick: &'a strcommand_str: Stringarguments: Vec<String>

Methods

impl<'a> Command<'a>[src]

pub fn try_parse<'u>(
    our_nick: &'u str,
    source_nick: &'a str,
    message: &'a str,
    config: &Config
) -> Option<Command<'a>>
[src]

pub fn from_command_str(
    source_nick: &'a str,
    command_str: &str
) -> Option<Command<'a>>
[src]

Trait Implementations

impl<'a, 'r> FromRequest<'a, 'r> for &'a Command<'r>[src]

type Error = Error

Auto Trait Implementations

impl<'a> Send for Command<'a>

impl<'a> Sync for Command<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T