Struct frida::DeviceManager
source · pub struct DeviceManager<'a> { /* private fields */ }
Expand description
Platform-independent device manager abstraction access.
Implementations§
source§impl<'a> DeviceManager<'a>
impl<'a> DeviceManager<'a>
sourcepub fn obtain<'b>(_frida: &'b Frida) -> Selfwhere
'b: 'a,
pub fn obtain<'b>(_frida: &'b Frida) -> Selfwhere
'b: 'a,
Obtain an DeviceManager handle, ensuring that the runtime is properly initialized. This may be called as many times as needed, and results in a no-op if the DeviceManager is already initialized.
sourcepub fn enumerate_all_devices<'b>(&'a self) -> Vec<Device<'b>>where
'a: 'b,
pub fn enumerate_all_devices<'b>(&'a self) -> Vec<Device<'b>>where
'a: 'b,
Returns all devices.
sourcepub fn get_device_by_type(&'a self, type: DeviceType) -> Result<Device<'a>>
pub fn get_device_by_type(&'a self, type: DeviceType) -> Result<Device<'a>>
Returns the device of the specified type.
sourcepub fn get_device_by_id(&'a self, device_id: &str) -> Result<Device<'a>>
pub fn get_device_by_id(&'a self, device_id: &str) -> Result<Device<'a>>
Returns the device with the specified id.
§Example
let frida = unsafe { frida::Frida::obtain() }; let device_manager = frida::DeviceManager::obtain(&frida);
let id = “
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeviceManager<'a>
impl<'a> RefUnwindSafe for DeviceManager<'a>
impl<'a> !Send for DeviceManager<'a>
impl<'a> !Sync for DeviceManager<'a>
impl<'a> Unpin for DeviceManager<'a>
impl<'a> UnwindSafe for DeviceManager<'a>
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