pub enum InfoId<'a> {
Show 15 variants
Away,
Channel,
Charset,
Configdir,
EventText(&'a str),
Host,
Inputbox,
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.
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§
Source§impl<'a> Ord for InfoId<'a>
impl<'a> Ord for InfoId<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for InfoId<'a>
impl<'a> PartialOrd for InfoId<'a>
impl<'a> Copy for InfoId<'a>
impl<'a> Eq for InfoId<'a>
impl<'a> StructuralPartialEq for InfoId<'a>
Auto Trait Implementations§
impl<'a> Freeze for InfoId<'a>
impl<'a> RefUnwindSafe for InfoId<'a>
impl<'a> Send for InfoId<'a>
impl<'a> Sync for InfoId<'a>
impl<'a> Unpin for InfoId<'a>
impl<'a> UnwindSafe for InfoId<'a>
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