Enum frida::DeviceType
source · #[non_exhaustive]#[repr(u32)]pub enum DeviceType {
Local = 0,
Remote = 1,
USB = 2,
}
Expand description
Frida device type.
Represents different connection types
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Local = 0
Local Frida device.
Remote = 1
Remote Frida device, connected via network
USB = 2
Device connected via USB
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
source§impl Display for DeviceType
impl Display for DeviceType
source§impl From<DeviceType> for FridaDeviceType
impl From<DeviceType> for FridaDeviceType
source§fn from(value: DeviceType) -> Self
fn from(value: DeviceType) -> Self
Converts to this type from the input type.
source§impl From<u32> for DeviceType
impl From<u32> for DeviceType
source§impl Hash for DeviceType
impl Hash for DeviceType
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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