[][src]Enum evtx::err::Error

pub enum Error {
    FailedToRead {
        offset: u64,
        t: String,
        source: Error,
        backtrace: Backtrace,
    },
    IO {
        source: Error,
        backtrace: Backtrace,
    },
    InvalidInputPath {
        source: Error,
        path: String,
    },
    FailedToOpenFile {
        source: Error,
        path: PathBuf,
    },
    IncompleteChunk {
        chunk_number: u16,
    },
    InvalidEvtxRecordHeaderMagic {
        magic: [u8; 4],
    },
    InvalidEvtxChunkMagic {
        magic: [u8; 8],
    },
    InvalidEvtxFileHeaderMagic {
        magic: [u8; 8],
    },
    UnknownEvtxHeaderFlagValue {
        value: u32,
    },
    InvalidChunkChecksum {},
    FailedToDeserializeRecord {
        record_id: u64,
        source: Box<Error>,
    },
    InvalidToken {
        value: u8,
        offset: u64,
    },
    InvalidValueVariant {
        value: u8,
        offset: u64,
    },
    UnimplementedValueVariant {
        name: String,
        size: Option<u16>,
        offset: u64,
    },
    UnimplementedToken {
        name: String,
        offset: u64,
    },
    FailedToDecodeUTF16String {
        source: Error,
        offset: u64,
    },
    FailedToDecodeUTF8String {
        source: FromUtf8Error,
        offset: u64,
    },
    FailedToDecodeANSIString {
        encoding: &'static str,
        message: String,
        offset: u64,
    },
    FailedToReadGUID {
        source: Error,
        offset: u64,
    },
    FailedToReadNTSID {
        source: Error,
        offset: u64,
    },
    FailedToCreateRecordModel {
        message: String,
    },
    XmlOutputError {
        message: String,
    },
    JsonStructureError {
        message: String,
    },
    JsonError {
        source: Error,
    },
    RecordContainsInvalidUTF8 {
        source: FromUtf8Error,
    },
    Unimplemented {
        name: String,
    },
    Any {
        detail: String,
    },
}

Variants

FailedToRead

Fields of FailedToRead

offset: u64t: Stringsource: Errorbacktrace: Backtrace
IO

Fields of IO

source: Errorbacktrace: Backtrace
InvalidInputPath

Fields of InvalidInputPath

source: Errorpath: String
FailedToOpenFile

Fields of FailedToOpenFile

source: Errorpath: PathBuf
IncompleteChunk

Errors related to Deserialization

Fields of IncompleteChunk

chunk_number: u16
InvalidEvtxRecordHeaderMagic

Fields of InvalidEvtxRecordHeaderMagic

magic: [u8; 4]
InvalidEvtxChunkMagic

Fields of InvalidEvtxChunkMagic

magic: [u8; 8]
InvalidEvtxFileHeaderMagic

Fields of InvalidEvtxFileHeaderMagic

magic: [u8; 8]
UnknownEvtxHeaderFlagValue

Fields of UnknownEvtxHeaderFlagValue

value: u32
InvalidChunkChecksum

Fields of InvalidChunkChecksum

FailedToDeserializeRecord

Fields of FailedToDeserializeRecord

record_id: u64source: Box<Error>
InvalidToken

Fields of InvalidToken

value: u8offset: u64
InvalidValueVariant

Fields of InvalidValueVariant

value: u8offset: u64
UnimplementedValueVariant

Fields of UnimplementedValueVariant

name: Stringsize: Option<u16>offset: u64
UnimplementedToken

Fields of UnimplementedToken

name: Stringoffset: u64
FailedToDecodeUTF16String

Fields of FailedToDecodeUTF16String

source: Erroroffset: u64
FailedToDecodeUTF8String

Fields of FailedToDecodeUTF8String

source: FromUtf8Erroroffset: u64
FailedToDecodeANSIString

Fields of FailedToDecodeANSIString

encoding: &'static strmessage: Stringoffset: u64
FailedToReadGUID

Fields of FailedToReadGUID

source: Erroroffset: u64
FailedToReadNTSID

Fields of FailedToReadNTSID

source: Erroroffset: u64
FailedToCreateRecordModel

Fields of FailedToCreateRecordModel

message: String
XmlOutputError

Errors related to Serialization

Fields of XmlOutputError

message: String
JsonStructureError

Fields of JsonStructureError

message: String
JsonError

Fields of JsonError

source: Error
RecordContainsInvalidUTF8

Fields of RecordContainsInvalidUTF8

source: FromUtf8Error
Unimplemented

Misc Errors

Fields of Unimplemented

name: String
Any

Fields of Any

detail: String

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl Display for Error[src]

impl Debug for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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.

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

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

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

fn name(&self) -> Option<&str>

Returns the "name" of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more