pub fn reply_privately<B>(&self, body: B) -> OutgoingMessage
    where
        B: Into<String>,
    {
        let target = match self.source {
            Source::User(ref user) => Target::User(user.clone()),
            Source::UserInRoom(ref user, _) => Target::User(user.clone()),
        };

        OutgoingMessage::new(target, body)
    }
/// Creates an `OutgoingMessage` directly targeting the source of the incoming message.
Creates an `OutgoingMessage` directly targeting the source of the incoming message.
Creates an ` OutgoingMessage ` directly targeting the source of the incoming message .
pub fn reply_privately<B>(&self, body: B) -> OutgoingMessage
    where
        B: Into<String>,
    {
        let target = match self.source {
            Source::User(ref user) => Target::User(user.clone()),
            Source::UserInRoom(ref user, _) => Target::User(user.clone()),
        };
        OutgoingMessage::new(target, body)
    }
pub fn reply_privately < B > ( & self , body : B ) -> OutgoingMessage where B : Into < String > , { let target = match self . source { Source :: User ( ref user ) => Target :: User ( user . clone ( ) ) , Source :: UserInRoom ( ref user , _ ) => Target :: User ( user . clone ( ) ) , } ; OutgoingMessage :: new ( target , body ) }
Creates an `OutgoingMessage` directly targeting the source of the incoming message.
Creates an ` OutgoingMessage ` directly targeting the source of the incoming message .
&self
body
B
&self
body
B