Enum hexchat_plugin::InfoId
source · pub enum InfoId<'a> {
Show 16 variants
Away,
Channel,
Charset,
Configdir,
EventText(&'a str),
Host,
Inputbox,
Libdirfs,
Modes,
Network,
Nick,
Nickserv,
Server,
Topic,
Version,
WinStatus,
}
Expand description
A hexchat_get_info key.
Variants
Away
Returns the away message, or None
if the user is not away.
Channel
Returns the current channel name.
Charset
Returns the current charset.
Configdir
Returns the hexchat configuration directory, e.g. /home/user/.config/hexchat
.
EventText(&'a str)
Returns the text event format string for the given text event name.
Host
Returns the (real) hostname of the current server.
Inputbox
Returns the contents of the input box.
Libdirfs
Returns the library directory, e.g. /usr/lib/hexchat
.
May not always work, as this string isn’t necessarily UTF-8, but local file system encoding.
Modes
Returns the channel modes, if known, or None
.
Network
Returns the current network name, or None
.
Nick
Returns the user’s current nick.
Nickserv
Returns the user’s nickserv password, if any, or None
Server
Returns the current server name, or None
if you are not connected.
Topic
Returns the current channel topic.
Version
Returns the HexChat version string.
WinStatus
Returns the window status: “active”, “hidden” or “normal”.
Implementations
Trait Implementations
sourceimpl<'a> Ord for InfoId<'a>
impl<'a> Ord for InfoId<'a>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl<'a> PartialOrd<InfoId<'a>> for InfoId<'a>
impl<'a> PartialOrd<InfoId<'a>> for InfoId<'a>
sourcefn partial_cmp(&self, other: &InfoId<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &InfoId<'a>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more