pub struct ProfileHardware {
pub screen_width: u32,
pub screen_height: u32,
pub color_depth: u8,
pub device_memory: u8,
pub hardware_concurrency: u8,
pub webgl_vendor: &'static str,
pub webgl_renderer: &'static str,
}Expand description
A coherent hardware/display tuple for a browser fingerprint profile.
Fields§
§screen_width: u32screen.width.
screen_height: u32screen.height.
color_depth: u8screen.colorDepth / screen.pixelDepth.
device_memory: u8navigator.deviceMemory GB.
hardware_concurrency: u8navigator.hardwareConcurrency.
webgl_vendor: &'static strWebGL UNMASKED_VENDOR_WEBGL.
webgl_renderer: &'static strWebGL UNMASKED_RENDERER_WEBGL.
Trait Implementations§
Source§impl Clone for ProfileHardware
impl Clone for ProfileHardware
Source§fn clone(&self) -> ProfileHardware
fn clone(&self) -> ProfileHardware
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProfileHardware
Source§impl Debug for ProfileHardware
impl Debug for ProfileHardware
impl Eq for ProfileHardware
Source§impl PartialEq for ProfileHardware
impl PartialEq for ProfileHardware
Source§fn eq(&self, other: &ProfileHardware) -> bool
fn eq(&self, other: &ProfileHardware) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProfileHardware
Auto Trait Implementations§
impl Freeze for ProfileHardware
impl RefUnwindSafe for ProfileHardware
impl Send for ProfileHardware
impl Sync for ProfileHardware
impl Unpin for ProfileHardware
impl UnsafeUnpin for ProfileHardware
impl UnwindSafe for ProfileHardware
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