pub struct PeerInfo {
pub identity: RuntimeIdentity,
pub role: NodeRole,
pub last_seen_ms: u64,
}Expand description
Peer metadata used by sync orchestration.
Fields§
§identity: RuntimeIdentityApplication-scoped runtime identity advertised by the peer.
role: NodeRoleCurrent synchronization role reported by the peer.
last_seen_ms: u64Last observed peer timestamp in Unix epoch milliseconds.
Implementations§
Source§impl PeerInfo
impl PeerInfo
Sourcepub fn ensure_compatible_with(&self, local: &RuntimeIdentity) -> SyncResult<()>
pub fn ensure_compatible_with(&self, local: &RuntimeIdentity) -> SyncResult<()>
Verifies that the peer belongs to the local application sync group.
Trait Implementations§
impl Eq for PeerInfo
impl StructuralPartialEq for PeerInfo
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnsafeUnpin for PeerInfo
impl UnwindSafe for PeerInfo
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