pub struct RemoteNodeState {
pub id: NodeId,
pub addr: String,
pub tag: String,
pub ping_latency: Option<Duration>,
pub last_heartbeat: Option<DateTime<Utc>>,
pub node_started_at: Option<DateTime<Utc>>,
pub status: NodeStatus,
pub attributes: NodeAttributesRef,
}Fields§
§id: NodeId§addr: String§tag: String§ping_latency: Option<Duration>§last_heartbeat: Option<DateTime<Utc>>§node_started_at: Option<DateTime<Utc>>§status: NodeStatus§attributes: NodeAttributesRefImplementations§
Source§impl RemoteNodeState
impl RemoteNodeState
pub fn new(node: RemoteNode) -> Self
Trait Implementations§
Source§impl Clone for RemoteNodeState
impl Clone for RemoteNodeState
Source§fn clone(&self) -> RemoteNodeState
fn clone(&self) -> RemoteNodeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteNodeState
impl Debug for RemoteNodeState
Source§impl Default for RemoteNodeState
impl Default for RemoteNodeState
Source§impl From<RemoteNodeState> for ClusterNode
impl From<RemoteNodeState> for ClusterNode
Source§fn from(node: RemoteNodeState) -> Self
fn from(node: RemoteNodeState) -> Self
Converts to this type from the input type.
Source§impl From<RemoteNodeState> for RemoteNode
impl From<RemoteNodeState> for RemoteNode
Source§fn from(s: RemoteNodeState) -> Self
fn from(s: RemoteNodeState) -> Self
Converts to this type from the input type.
Source§impl From<RemoteNodeState> for RemoteNode
impl From<RemoteNodeState> for RemoteNode
Source§fn from(s: RemoteNodeState) -> Self
fn from(s: RemoteNodeState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemoteNodeState
impl PartialEq for RemoteNodeState
Source§fn eq(&self, other: &RemoteNodeState) -> bool
fn eq(&self, other: &RemoteNodeState) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl Freeze for RemoteNodeState
impl RefUnwindSafe for RemoteNodeState
impl Send for RemoteNodeState
impl Sync for RemoteNodeState
impl Unpin for RemoteNodeState
impl UnsafeUnpin for RemoteNodeState
impl UnwindSafe for RemoteNodeState
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