[][src]Enum elfkit::loader::State

pub enum State {
    Error {
        name: String,
        error: Error,
    },
    Path {
        name: String,
    },
    Archive {
        name: String,
        archive: Archive<File>,
    },
    Elf {
        hash: String,
        name: String,
        elf: Elf,
        read: RefCell<Box<dyn ReadSeekSend>>,
        bloom: BloomFilter,
        symbols: Vec<Symbol>,
    },
    Object {
        hash: String,
        name: String,
        symbols: Vec<Symbol>,
        header: Header,
        sections: Vec<(usize, Section, Vec<Relocation>)>,
    },
}

Variants

Error

Fields of Error

name: Stringerror: Error
Path

Fields of Path

name: String
Archive

Fields of Archive

name: Stringarchive: Archive<File>
Elf

Fields of Elf

hash: Stringname: Stringelf: Elfread: RefCell<Box<dyn ReadSeekSend>>bloom: BloomFiltersymbols: Vec<Symbol>
Object

Fields of Object

hash: Stringname: Stringsymbols: Vec<Symbol>header: Headersections: Vec<(usize, Section, Vec<Relocation>)>

Methods

impl State[src]

pub fn load_if<E>(self, needles: &Vec<&[u8]>, e: &E) -> Vec<State> where
    E: Fn(Error, String) -> Vec<State> + Sync
[src]

pub fn contains(&mut self, needle: &[u8], needle_hash: [u64; 2]) -> bool[src]

pub fn load<E>(self, e: &E) -> Vec<State> where
    E: Fn(Error, String) -> Vec<State>, 
[src]

Auto Trait Implementations

impl Send for State

impl !Sync for State

Blanket Implementations

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

impl<T> From<T> for 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]