[][src]Struct irc_rust::prefix::Prefix

pub struct Prefix { /* fields omitted */ }

Message prefix containing a name (servername or nickname) and optional user and host. If the user and host are set the name is semantically seen as the nickname.

Methods

impl Prefix[src]

pub fn new(raw: &str) -> Prefix[src]

Create a new Prefix from the given string. Expects the string to be a valid prefix string.

pub fn builder(name: &str) -> PrefixBuilder[src]

pub fn name(&self) -> &str[src]

pub fn host(&self) -> Option<&str>[src]

pub fn user(&self) -> Option<&str>[src]

Trait Implementations

impl ToString for Prefix[src]

Auto Trait Implementations

impl RefUnwindSafe for Prefix

impl Send for Prefix

impl Sync for Prefix

impl Unpin for Prefix

impl UnwindSafe for Prefix

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.