Enum lsmlite_rs::LsmErrorCode
source · #[repr(C)]pub enum LsmErrorCode {
Show 17 variants
LsmError = 1,
LsmBusy = 5,
LsmNoMem = 7,
LsmReadOnly = 8,
LsmIOErr = 10,
LsmCorrupt = 11,
LsmFull = 13,
LsmCantOpen = 14,
LsmProtocol = 15,
LsmMisuse = 21,
LsmMismatch = 50,
LsmConversionErr = 55,
LsmMetricCreation = 56,
LsmMetricRegistration = 57,
LsmMetricsEmpty = 58,
LsmBgThreadUnavailable = 59,
LsmUnknownCode = 60,
}
Expand description
These are the different kind of errors that we can encounter.
Variants§
LsmError = 1
LsmBusy = 5
LsmNoMem = 7
LsmReadOnly = 8
LsmIOErr = 10
LsmCorrupt = 11
LsmFull = 13
LsmCantOpen = 14
LsmProtocol = 15
LsmMisuse = 21
LsmMismatch = 50
LsmConversionErr = 55
LsmMetricCreation = 56
LsmMetricRegistration = 57
LsmMetricsEmpty = 58
LsmUnknownCode = 60
Trait Implementations§
source§impl Clone for LsmErrorCode
impl Clone for LsmErrorCode
source§fn clone(&self) -> LsmErrorCode
fn clone(&self) -> LsmErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LsmErrorCode
impl Debug for LsmErrorCode
source§impl Display for LsmErrorCode
impl Display for LsmErrorCode
source§impl Error for LsmErrorCode
impl Error for LsmErrorCode
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()
source§impl PartialEq for LsmErrorCode
impl PartialEq for LsmErrorCode
source§fn eq(&self, other: &LsmErrorCode) -> bool
fn eq(&self, other: &LsmErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for LsmErrorCode
impl TryFrom<i32> for LsmErrorCode
The following try_from
s are to be able to parse an integer to the
corresponding enum (one of the above).
impl Copy for LsmErrorCode
impl Eq for LsmErrorCode
impl StructuralEq for LsmErrorCode
impl StructuralPartialEq for LsmErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for LsmErrorCode
impl Send for LsmErrorCode
impl Sync for LsmErrorCode
impl Unpin for LsmErrorCode
impl UnwindSafe for LsmErrorCode
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