[][src]Trait twitch_irc::message::AsRawIRC

pub trait AsRawIRC {
    fn format_as_raw_irc(&self, f: &mut Formatter<'_>) -> Result;

    fn as_raw_irc(&self) -> String
    where
        Self: Sized
, { ... } }

Anything that can be converted into the raw IRC wire format.

Required methods

fn format_as_raw_irc(&self, f: &mut Formatter<'_>) -> Result

Writes the raw IRC message to the given formatter.

Loading content...

Provided methods

fn as_raw_irc(&self) -> String where
    Self: Sized

Creates a new string with the raw IRC message.

The resulting output string is guaranteed to parse to the same value it was created from, but due to protocol ambiguity it is not guaranteed to be identical to the input the value was parsed from (if it was parsed at all).

For example, the order of tags might differ, or the use of trailing parameters might be different.

Loading content...

Implementors

impl AsRawIRC for IRCPrefix[src]

impl AsRawIRC for ServerMessage[src]

impl AsRawIRC for IRCMessage[src]

impl AsRawIRC for IRCTags[src]

Loading content...