Enum hexchat_api::HexchatError
source · pub enum HexchatError {
CommandFailed(String),
InfoNotFound(String),
ThreadSafeOperationFailed(String),
UnknownType(String),
ContextAcquisitionFailed(String),
ContextOperationFailed(String),
ContextDropped(String),
ListNotFound(String),
ListFieldNotFound(String),
ListIteratorNotStarted(String),
ListIteratorDropped(String),
}
Expand description
Each of the various ways the API can fail is collected in this enumerated type.
Variants§
CommandFailed(String)
The command failed to execute.
InfoNotFound(String)
The requested info wasn’t found or doesn’t exist.
ThreadSafeOperationFailed(String)
This can happen when a ThreadSafeContext
or ThreadSafeListIterator
object is used while the plugin is unloading. The main thread task
handler isn’t accepting any more tasks, so the operation fails.
UnknownType(String)
The list iterator may return this if the Hexchat API changes. Currently this won’t get thrown.
ContextAcquisitionFailed(String)
The function was unable to acquire the desired context associated with the given network and channel names.
ContextOperationFailed(String)
The context acquisition succeeded, but there is some problem with the
action being performed. For instance the requested list for
ctx.get_listiter("foo")
doesn’t exist.
ContextDropped(String)
The context object was dropped.
ListNotFound(String)
The requested list doesn’t exist.
ListFieldNotFound(String)
The requested field doesn’t exist.
ListIteratorNotStarted(String)
The list iterator type for Hexchat requires that next() be called at least once before its fields are accessible.
ListIteratorDropped(String)
The list iterator object was dropped. This might happen if the plugin is unloading while another thread is still running and using the iterator.
Trait Implementations§
source§impl Clone for HexchatError
impl Clone for HexchatError
source§fn clone(&self) -> HexchatError
fn clone(&self) -> HexchatError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more