[][src]Struct ttv_chat::messages::HostTarget

pub struct HostTarget<'a> { /* fields omitted */ }

When a channel starts to host another channel

Implementations

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

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

Get the raw message

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

Source channel (the one doing the hosting).

pub fn viewers(&self) -> Option<usize>[src]

How many viewers are going along

pub fn host_target_kind(&self) -> HostTargetKind<'_>[src]

What kind of event this was. e.g. Start or End

Trait Implementations

impl<'a> Clone for HostTarget<'a>[src]

impl<'a> Debug for HostTarget<'a>[src]

impl<'a> From<HostTarget<'a>> for Commands<'a>[src]

impl<'a> FromIrcMessage<'a> for HostTarget<'a>[src]

type Error = MessageError

An error returned if this message could not be parsed.

fn into_inner(self) -> MaybeOwned<'a>[src]

Consumes the message, returning the raw MaybeOwned<'_>

impl<'a> IntoOwned<'a> for HostTarget<'a>[src]

type Output = HostTarget<'static>

The output type

impl<'a> PartialEq<HostTarget<'a>> for HostTarget<'a>[src]

impl<'a> StructuralPartialEq for HostTarget<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for HostTarget<'a>

impl<'a> Send for HostTarget<'a>

impl<'a> Sync for HostTarget<'a>

impl<'a> Unpin for HostTarget<'a>

impl<'a> UnwindSafe for HostTarget<'a>

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<'a, T> IntoIrcMessage<'a> for T where
    T: 'a + FromIrcMessage<'a>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.