pub fn unwrap_text(self) -> String {
        match self {
            Self::Text(text) => text,
            Self::Close(_, _) => panic!("Not a text message"),
        }
    }
/// Returns the contained [WsMessage::Text] value, consuming the `self` value.
///
/// Because this function may panic, its use is generally discouraged.
///
/// # Panics
///
/// Panics if the self value not equals [WsMessage::Text].
Returns the contained [WsMessage::Text] value, consuming the `self` value.
Because this function may panic, its use is generally discouraged.
Returns the contained [ WsMessage :: Text ] value consuming the ` self ` value . Because this function may panic its use is generally discouraged .
pub fn unwrap_text(self) -> String {
        match self {
            Self::Text(text) => text,
            Self::Close(_, _) => panic!("Not a text message"),
        }
    }
pub fn unwrap_text ( self ) -> String { match self { Self :: Text ( text ) => text , Self :: Close ( _ , _ ) => panic ! ( " " ) , } }
Returns the contained [WsMessage::Text] value, consuming the `self` value.
Returns the contained [ WsMessage :: Text ] value consuming the ` self ` value .
self
self
panics
Panics if the self value not equals [WsMessage::Text].
Panics if the self value not equals [ WsMessage :: Text ] .