Struct mpd::message::Channel [] [src]

pub struct Channel(_);

Channel

Methods

impl Channel
[src]

fn new(name: &str) -> Option<Channel>

Create channel with given name

unsafe fn new_unchecked(name: String) -> Channel

Create channel with arbitrary name, bypassing name validity checks

Not recommened! Use new() method above instead.

fn is_valid_name(name: &str) -> bool

Check if given name is a valid channel name

Valid channel name can contain only English letters (A-Z, a-z), numbers (0-9), underscore, forward slash, dot and colon (_, /, ., :)

Trait Implementations

impl Encodable for Channel
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for Channel
[src]

fn clone(&self) -> Channel

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl PartialOrd for Channel
[src]

fn partial_cmp(&self, __arg_0: &Channel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &Channel) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &Channel) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &Channel) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &Channel) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for Channel
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Channel) -> bool

This method tests for !=.

impl Debug for Channel
[src]

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

Formats the value using the given formatter.

impl Display for Channel
[src]

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

Formats the value using the given formatter.