[][src]Trait twitchchat::IntoChannel

pub trait IntoChannel: Send {
    fn into_channel(self) -> Result<Channel, Error>;
}

A trait to convert types into Channel

let channel: Channel = "museun".into_channel().unwrap();
assert_eq!(*channel, "#museun");

let channel: Channel = "#museun".into_channel().unwrap();
assert_eq!(*channel, "#museun");

Required methods

fn into_channel(self) -> Result<Channel, Error>

Tries to convert this type a channel

Loading content...

Implementors

impl<T> IntoChannel for T where
    T: ToString + Send
[src]

Loading content...