mirror of
https://github.com/solokeys/admin-app.git
synced 2026-06-20 13:16:17 -07:00
Add back new method
This commit is contained in:
@@ -158,6 +158,22 @@ where
|
||||
R: Reboot,
|
||||
S: AsRef<[u8]>,
|
||||
{
|
||||
pub fn new(
|
||||
client: T,
|
||||
uuid: [u8; 16],
|
||||
version: u32,
|
||||
full_version: &'static str,
|
||||
status: S,
|
||||
) -> Self {
|
||||
Self {
|
||||
trussed: client,
|
||||
uuid,
|
||||
version,
|
||||
full_version,
|
||||
status,
|
||||
boot_interface: PhantomData,
|
||||
}
|
||||
}
|
||||
fn user_present(&mut self) -> bool {
|
||||
let user_present = syscall!(self
|
||||
.trussed
|
||||
|
||||
Reference in New Issue
Block a user