pub struct MachineState {
pub name: String,
pub fingerprint: String,
pub platform: String,
pub user_agent: String,
}Fields§
§name: String§fingerprint: String§platform: String§user_agent: StringImplementations§
Source§impl MachineState
impl MachineState
pub fn get_fingerprint() -> String
pub fn get_fingerprint_app<R: Runtime>(_app_handle: &AppHandle<R>) -> String
pub async fn checkout<R: Runtime>( &self, app_handle: &AppHandle<R>, options: &MachineCheckoutOpts, ) -> Result<MachineFile>
pub fn load_machine_file<R: Runtime>( app_handle: &AppHandle<R>, key: &str, ) -> Result<Option<MachineFile>>
pub fn remove_machine_file<R: Runtime>(app_handle: &AppHandle<R>) -> Result<()>
Trait Implementations§
Source§impl Clone for MachineState
impl Clone for MachineState
Source§fn clone(&self) -> MachineState
fn clone(&self) -> MachineState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MachineState
impl RefUnwindSafe for MachineState
impl Send for MachineState
impl Sync for MachineState
impl Unpin for MachineState
impl UnsafeUnpin for MachineState
impl UnwindSafe for MachineState
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