Struct eva_common::common_payloads::NodeData
source · pub struct NodeData { /* private fields */ }Implementations§
source§impl NodeData
impl NodeData
pub fn new(
svc: Option<&str>,
online: bool,
info: Option<NodeInfo>,
timeout: Option<Duration>
) -> Self
pub fn svc(&self) -> Option<&str>
pub fn online(&self) -> bool
pub fn online_beacon(&self) -> Arc<AtomicBool>
pub fn info(&self) -> Option<&NodeInfo>
pub fn timeout(&self) -> Option<Duration>
pub fn set_online(&self, online: bool)
pub fn update_info(&mut self, info: NodeInfo)
pub fn update_timeout(&mut self, timeout: Option<Duration>)
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeData
impl<'de> Deserialize<'de> for NodeData
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