pub trait AsRawIRC {
// Required method
fn format_as_raw_irc(&self, f: &mut Formatter<'_>) -> Result;
// Provided method
fn as_raw_irc(&self) -> String
where Self: Sized { ... }
}
Expand description
Anything that can be converted into the raw IRC wire format.
Required Methods§
Sourcefn format_as_raw_irc(&self, f: &mut Formatter<'_>) -> Result
fn format_as_raw_irc(&self, f: &mut Formatter<'_>) -> Result
Writes the raw IRC message to the given formatter.
Provided Methods§
Sourcefn as_raw_irc(&self) -> Stringwhere
Self: Sized,
fn as_raw_irc(&self) -> Stringwhere
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.