pub struct CoreComponent { /* private fields */ }Expand description
The core part of an elf object
Implementations§
Source§impl CoreComponent
impl CoreComponent
Sourcepub fn downgrade(&self) -> CoreComponentRef
pub fn downgrade(&self) -> CoreComponentRef
Creates a new Weak pointer to this allocation.
Sourcepub fn strong_count(&self) -> usize
pub fn strong_count(&self) -> usize
Gets the number of strong references to the elf object.
Sourcepub fn weak_count(&self) -> usize
pub fn weak_count(&self) -> usize
Gets the number of weak references to the elf object.
Sourcepub fn needed_libs(&self) -> &[&'static str]
pub fn needed_libs(&self) -> &[&'static str]
Gets the needed libs’ name of the elf object.
Sourcepub unsafe fn call_fini(&self)
pub unsafe fn call_fini(&self)
Call the fini function, usually when the elf object is destroyed.
pub unsafe fn get<'lib, T>(&'lib self, name: &str) -> Option<Symbol<'lib, T>>
Trait Implementations§
Source§impl Clone for CoreComponent
impl Clone for CoreComponent
Source§fn clone(&self) -> CoreComponent
fn clone(&self) -> CoreComponent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreComponent
impl Debug for CoreComponent
impl Send for CoreComponent
impl Sync for CoreComponent
Auto Trait Implementations§
impl Freeze for CoreComponent
impl !RefUnwindSafe for CoreComponent
impl Unpin for CoreComponent
impl !UnwindSafe for CoreComponent
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