Struct Module

Source
pub struct Module {
    pub data: ModuleData,
    pub syms: SymbolsData,
    pub loaded: Cell<bool>,
}

Fields§

§data: ModuleData§syms: SymbolsData§loaded: Cell<bool>

Trait Implementations§

Source§

impl GetProp for Module

Source§

fn get_prop(&self, key: &str) -> UDbgResult<Value>

Source§

impl UDbgModule for Module

Source§

fn data(&self) -> &ModuleData

Source§

fn symbol_status(&self) -> SymbolStatus

Source§

fn add_symbol(&self, offset: usize, name: &str) -> UDbgResult<()>

Source§

fn find_symbol(&self, offset: usize, max_offset: usize) -> Option<Symbol>

Source§

fn get_symbol(&self, name: &str) -> Option<Symbol>

get symbol info by name
Source§

fn symbol_file(&self) -> Option<Arc<dyn SymbolFile>>

get the symbol file of this module
Source§

fn enum_symbol( &self, pat: Option<&str>, ) -> UDbgResult<Box<dyn Iterator<Item = Symbol>>>

enumerate symbols by optional wildcard
Source§

fn get_exports(&self) -> Option<Vec<Symbol>>

get all exported symbols
Source§

fn is_32(&self) -> bool

Source§

fn symbols_data(&self) -> Option<&SymbolsData>

Source§

fn load_symbol_file(&self, path: Option<&str>) -> UDbgResult<()>

specific a symbol file for this module

Auto Trait Implementations§

§

impl !Freeze for Module

§

impl !RefUnwindSafe for Module

§

impl !Send for Module

§

impl !Sync for Module

§

impl Unpin for Module

§

impl !UnwindSafe for Module

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsByteArray for T

Source§

fn as_byte_array(&self) -> &[u8]

Source§

impl<T> AsByteArrayMut for T

Source§

fn as_mut_byte_array(&mut self) -> &mut [u8]

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RangeValue for T
where T: UDbgModule,

Source§

default fn as_range(&self) -> Range<usize>

Source§

fn cmp(&self, val: T) -> Ordering

Source§

fn contains(&self, v: T) -> bool

Source§

fn binary_search_mut<'a, S: AsMut<[Self]> + 'a>( s: &'a mut S, val: T, ) -> Option<&'a mut Self>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more