pub fn is_text(&self) -> bool {
        match *self {
            Text(_) => true,
            Binary(_) => false,
        }
    }
/// Indicates whether a message is a text message.
Indicates whether a message is a text message.
Indicates whether a message is a text message .
pub fn is_text(&self) -> bool {
        match *self {
            Text(_) => true,
            Binary(_) => false,
        }
    }
pub fn is_text ( & self ) -> bool { match * self { Text ( _ ) => true , Binary ( _ ) => false , } }
Indicates whether a message is a text message.
Indicates whether a message is a text message .
&self
&self