Enum dasi::model::ChannelType [] [src]

pub enum ChannelType {
    Text,
    Voice,
}

The type of a channel

Variants

Text

A text channel, through which Messages are transmitted

Voice

A voice channel

Methods

impl ChannelType

fn from_str(name: &str) -> Option<ChannelType>

Attempt to parse a ChannelType from a name

fn name(&self) -> &'static str

Get the name of this ChannelType

Trait Implementations

Derived Implementations

impl Debug for ChannelType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for ChannelType

fn eq(&self, __arg_0: &ChannelType) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Eq for ChannelType

impl Hash for ChannelType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for ChannelType

fn clone(&self) -> ChannelType

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for ChannelType