pub enum Prefix {
ServerName(String),
Nickname(String, String, String),
}
Expand description
The Prefix indicates “the true origin of the message”, according to the server.
Variants§
ServerName(String)
servername, e.g. collins.mozilla.org
Nickname(String, String, String)
nickname [ [“!” username] “@” hostname ] i.e. Nickname(nickname, username, hostname) Any of the strings may be “”
Implementations§
Trait Implementations§
source§impl FromStr for Prefix
impl FromStr for Prefix
This implementation never returns an error and is isomorphic with Display
.
source§impl PartialEq for Prefix
impl PartialEq for Prefix
impl Eq for Prefix
impl StructuralPartialEq for Prefix
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnwindSafe for Prefix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more