pub struct Heard {
pub correction: Option<i32>,
pub more_correction: bool,
pub resync: Option<u8>,
pub answer_due: bool,
}Expand description
What a downlink on the clock port asked of the device.
Fields§
§correction: Option<i32>The seconds to add to the device’s clock, where an answer carried a correction that matched the outstanding request.
more_correction: boolWhether the correction was the largest the field carries, so the clock is not yet right and another request should follow, section 3.2.
resync: Option<u8>How many requests the server asked for at once, from a resynchronization command.
answer_due: boolWhether the device now owes an answer, which ClockSync::answer writes.
Trait Implementations§
impl Copy for Heard
impl Eq for Heard
impl StructuralPartialEq for Heard
Auto Trait Implementations§
impl Freeze for Heard
impl RefUnwindSafe for Heard
impl Send for Heard
impl Sync for Heard
impl Unpin for Heard
impl UnsafeUnpin for Heard
impl UnwindSafe for Heard
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