Add back new method

This commit is contained in:
Sosthène Guédon
2023-09-14 15:03:44 +02:00
parent 299fd5f754
commit 1877e3df6d
+16
View File
@@ -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