pub struct Beat {
pub host: HostInfo,
pub targets: Vec<TargetReport>,
pub events: Vec<DriftEvent>,
pub results: Vec<ApplyResult>,
pub wait_secs: u32,
}Expand description
The heartbeat. No IP address: the hub has the socket where it needs one.
Fields§
§host: HostInfo§targets: Vec<TargetReport>§events: Vec<DriftEvent>§results: Vec<ApplyResult>§wait_secs: u32Seconds the node is willing to wait for the hub to answer. The hub holds the request open this long when it has nothing to say, so a vault save reaches the node in about a second instead of one interval.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Beat
impl<'de> Deserialize<'de> for Beat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Beat
Auto Trait Implementations§
impl Freeze for Beat
impl RefUnwindSafe for Beat
impl Send for Beat
impl Sync for Beat
impl Unpin for Beat
impl UnsafeUnpin for Beat
impl UnwindSafe for Beat
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