pub struct WorkerPeerEntry {
pub host: String,
pub quic_port: u16,
pub tcp_port: u16,
pub last_ok: Option<u64>,
pub last_fail: Option<u64>,
pub last_seen_in_gossip: Option<u64>,
pub tls_cert: String,
pub tls_fp: String,
pub manager_name: String,
pub manager_peer: Option<ManagerPeerEntry>,
}Expand description
Worker peer entry for database storage
Fields§
§host: String§quic_port: u16§tcp_port: u16§last_ok: Option<u64>§last_fail: Option<u64>§last_seen_in_gossip: Option<u64>§tls_cert: String§tls_fp: String§manager_name: String§manager_peer: Option<ManagerPeerEntry>Trait Implementations§
Source§impl Clone for WorkerPeerEntry
impl Clone for WorkerPeerEntry
Source§fn clone(&self) -> WorkerPeerEntry
fn clone(&self) -> WorkerPeerEntry
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 WorkerPeerEntry
impl Debug for WorkerPeerEntry
Source§impl<'de> Deserialize<'de> for WorkerPeerEntry
impl<'de> Deserialize<'de> for WorkerPeerEntry
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
Source§impl PartialEq for WorkerPeerEntry
impl PartialEq for WorkerPeerEntry
Source§impl Serialize for WorkerPeerEntry
impl Serialize for WorkerPeerEntry
impl StructuralPartialEq for WorkerPeerEntry
Auto Trait Implementations§
impl Freeze for WorkerPeerEntry
impl RefUnwindSafe for WorkerPeerEntry
impl Send for WorkerPeerEntry
impl Sync for WorkerPeerEntry
impl Unpin for WorkerPeerEntry
impl UnsafeUnpin for WorkerPeerEntry
impl UnwindSafe for WorkerPeerEntry
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