1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
crate::ix!();
pub struct PeerAddrSendTimes {
/**
| Time point to send the next ADDR message
| to this peer.
|
|
*/
pub next_addr_send: Option<OffsetDateTime>, // microseconds
/**
| Time point to possibly re-announce
| our local address to this peer.
|
|
*/
pub next_local_addr_send: Option<OffsetDateTime>, // microseconds
}
impl Default for PeerAddrSendTimes {
fn default() -> Self {
Self {
next_addr_send: None,
next_local_addr_send: None,
}
}
}