Enum hexchat_api::ListError
source · pub enum ListError {
UnknownList(String),
UnknownField(String),
UnknownType(i8),
NotStarted(String),
NotAvailable(String),
ListIteratorDropped(String),
}Expand description
Errors
UnknownField- indicates a field was asked for that the current list items don’t have. This value is a tuple holding the name of the requested field.UnknownType- indicates Hexchat reported a data type that it shouldn’t have - this should never happen, unless Hexchat is bugging out, or there’s been a modification to Hexchat’s API - which is unlikely. This tuple holds the type that Hexchat returned as the type of the requested field.NotStarted- This indicates field names were accessed before the iterator had been. started.next()needs to be invoked before the fields of the current item can be accessed.
Variants§
UnknownList(String)
UnknownField(String)
UnknownType(i8)
NotStarted(String)
NotAvailable(String)
ListIteratorDropped(String)
Trait Implementations§
source§impl Error for ListError
impl Error for ListError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for ListError
impl Send for ListError
impl Sync for ListError
impl Unpin for ListError
impl UnwindSafe for ListError
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