Enum hexchat_unsafe_plugin::InfoId
source · [−]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
sourceimpl<'a> Ord for InfoId<'a>
impl<'a> Ord for InfoId<'a>
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Copy for InfoId<'a>
impl<'a> Eq for InfoId<'a>
impl<'a> StructuralEq for InfoId<'a>
impl<'a> StructuralPartialEq for InfoId<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more