pub struct InitResult {
pub device_info: DeviceInfo,
pub hardware_id: HardwareId,
pub auth: StreamingAuthResult,
}Expand description
Result of device initialization
Convenience struct for protocol research scripts that manage
the init sequence manually rather than using KM003C::new().
Fields§
§device_info: DeviceInfoDevice information (model, versions, serial, etc.)
hardware_id: HardwareIdHardware ID used for authentication
auth: StreamingAuthResultAuthentication result
Implementations§
Source§impl InitResult
impl InitResult
Sourcepub fn is_authenticated(&self) -> bool
pub fn is_authenticated(&self) -> bool
Check if device is ready for AdcQueue streaming
Trait Implementations§
Source§impl Clone for InitResult
impl Clone for InitResult
Auto Trait Implementations§
impl Freeze for InitResult
impl RefUnwindSafe for InitResult
impl Send for InitResult
impl Sync for InitResult
impl Unpin for InitResult
impl UnsafeUnpin for InitResult
impl UnwindSafe for InitResult
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