[][src]Enum tslite::DbIssue

pub enum DbIssue {
    UnorderedRecord,
    HeaderCorrupted,
    OriginDateInvalid,
    RecordCorrupted(u64),
    MismatchRecordAmount,
    None,
}

Potential Issue in the DB file

Variants

UnorderedRecord

If a record is not properly chonologicaly ordered.

HeaderCorrupted

If the header is corrupted (cannot be fully read or data are wrong).

OriginDateInvalid

If the date of the DB is invalid.

RecordCorrupted(u64)

If a record is corrupted (cannot be fully read or data are wrong) with its index.

MismatchRecordAmount

If the number of record in the header doesn't match the amount that can be read from the physical file.

None

Indicate that there is no known issue

Trait Implementations

impl Clone for DbIssue[src]

impl Copy for DbIssue[src]

impl Debug for DbIssue[src]

impl PartialEq<DbIssue> for DbIssue[src]

impl StructuralPartialEq for DbIssue[src]

Auto Trait Implementations

impl RefUnwindSafe for DbIssue

impl Send for DbIssue

impl Sync for DbIssue

impl Unpin for DbIssue

impl UnwindSafe for DbIssue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.