pub struct ProbeInitInfo {
pub firmware_version: u32,
pub reason: String,
}Expand description
Probe information sent during registration INIT
Fields§
§firmware_version: u32Firmware version (e.g., 5120)
reason: StringReason for registration (e.g., “NEW”, “REREG_TIMER_EXPIRED”)
Implementations§
Source§impl ProbeInitInfo
impl ProbeInitInfo
Sourcepub fn reregister(firmware_version: u32, reason: &str) -> Self
pub fn reregister(firmware_version: u32, reason: &str) -> Self
Create probe init info for re-registration
Sourcepub fn to_init_message(&self) -> String
pub fn to_init_message(&self) -> String
Format as P_TO_R_INIT message for INIT command stdin
Uses the software probe format matching the official generic
software probe: TOKEN_SPECS fluffy 1000 <fw> <sub_arch>
Trait Implementations§
Source§impl Clone for ProbeInitInfo
impl Clone for ProbeInitInfo
Source§fn clone(&self) -> ProbeInitInfo
fn clone(&self) -> ProbeInitInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProbeInitInfo
impl RefUnwindSafe for ProbeInitInfo
impl Send for ProbeInitInfo
impl Sync for ProbeInitInfo
impl Unpin for ProbeInitInfo
impl UnsafeUnpin for ProbeInitInfo
impl UnwindSafe for ProbeInitInfo
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