Feed event into the link local
(
link_local: &mut source::LinkLocal,
event: event::Ntp,
)
| 145 | |
| 146 | /// Feed event into the link local |
| 147 | fn feed_link_local( |
| 148 | link_local: &mut source::LinkLocal, |
| 149 | event: event::Ntp, |
| 150 | ) -> Option<(&ClockParameters, SourceInfo)> { |
| 151 | // associated method to help borrow checker |
| 152 | let stratum = event.data().stratum; |
| 153 | |
| 154 | link_local |
| 155 | .feed(event) |
| 156 | .map(|params| (params, SourceInfo::LinkLocal(stratum))) |
| 157 | } |
| 158 | |
| 159 | /// Feed event into ntp source |
| 160 | fn feed_ntp_source( |