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

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

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

Required Methods

Writes the raw IRC message to the given formatter.

Provided Methods

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.

Implementors