pub struct DeviceState;Implementations§
Source§impl DeviceState
impl DeviceState
pub fn state_path() -> Result<PathBuf>
pub fn get_current() -> Result<String>
pub fn set_current(host: &str) -> Result<()>
pub fn clear_current() -> Result<()>
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
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