pub struct NativeDeviceDetector;
Expand description
Native utilities for system and device detection
Implementations§
Source§impl NativeDeviceDetector
impl NativeDeviceDetector
Sourcepub fn get_system_info() -> SystemInfo
pub fn get_system_info() -> SystemInfo
Get system information
Sourcepub fn generate_device_id() -> Result<String>
pub fn generate_device_id() -> Result<String>
Generate a device ID based on system characteristics
Sourcepub fn generate_session_id() -> String
pub fn generate_session_id() -> String
Generate a process/session ID
Sourcepub fn get_memory_info() -> Option<MemoryInfo>
pub fn get_memory_info() -> Option<MemoryInfo>
Get memory information
Sourcepub fn get_disk_info() -> Option<DiskInfo>
pub fn get_disk_info() -> Option<DiskInfo>
Get disk space information
Sourcepub fn is_containerized() -> bool
pub fn is_containerized() -> bool
Check if running in a container
Sourcepub fn get_environment_type() -> EnvironmentType
pub fn get_environment_type() -> EnvironmentType
Get environment type
Auto Trait Implementations§
impl Freeze for NativeDeviceDetector
impl RefUnwindSafe for NativeDeviceDetector
impl Send for NativeDeviceDetector
impl Sync for NativeDeviceDetector
impl Unpin for NativeDeviceDetector
impl UnwindSafe for NativeDeviceDetector
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more