pub struct HardwareUtils;Expand description
Generates the machine id that identifies this machine to Steam.
Implementations§
Source§impl HardwareUtils
impl HardwareUtils
Sourcepub fn init(machine_info_provider: Arc<dyn IMachineInfoProvider>)
pub fn init(machine_info_provider: Arc<dyn IMachineInfoProvider>)
Starts generating the machine id for machine_info_provider in the
background, so it’s ready by the time we log on. Without a tokio runtime
it’s generated on first use instead.
Sourcepub fn get_machine_id(
machine_info_provider: &Arc<dyn IMachineInfoProvider>,
) -> Option<Vec<u8>>
pub fn get_machine_id( machine_info_provider: &Arc<dyn IMachineInfoProvider>, ) -> Option<Vec<u8>>
The machine id for the provider, or None if HardwareUtils::init
wasn’t called for it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HardwareUtils
impl RefUnwindSafe for HardwareUtils
impl Send for HardwareUtils
impl Sync for HardwareUtils
impl Unpin for HardwareUtils
impl UnsafeUnpin for HardwareUtils
impl UnwindSafe for HardwareUtils
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