#[non_exhaustive]pub struct Module {
pub module: Option<TruncatableString>,
pub build_id: Option<TruncatableString>,
/* private fields */
}Expand description
Binary module.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.module: Option<TruncatableString>For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes).
build_id: Option<TruncatableString>A unique identifier for the module, usually a hash of its contents (up to 128 bytes).
Implementations§
Source§impl Module
impl Module
pub fn new() -> Self
Sourcepub fn set_module<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_module<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sourcepub fn set_or_clear_module<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_module<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sourcepub fn set_build_id<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_build_id<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sourcepub fn set_or_clear_build_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_build_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Trait Implementations§
impl StructuralPartialEq for 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> 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