pub struct PeerVersion {
pub borg: Option<String>,
pub protocol: u32,
pub ms: i64,
pub engineer: Option<String>,
}Expand description
What a member’s node told this one in its last completed session (versions_path).
Fields§
§borg: Option<String>Its borg version (CARGO_PKG_VERSION); None: it sent none, so it is older than 0.7.
protocol: u32The protocol the session agreed on (borg/mesh/<n>’s number).
ms: i64When that session completed.
engineer: Option<String>Its engineer, as its drones’ presence names them, when known.
Implementations§
Source§impl PeerVersion
impl PeerVersion
Sourcepub fn clean(self) -> PeerVersion
pub fn clean(self) -> PeerVersion
The record as every view may show it: a borg that is no version (update.rs is_version) and an
engineer that is no address (ENGINEER_CHARS, the characters msg.rs sender tokens allow) read as
unknown. A member’s hello is its own word: without this, text in it would reach a drone’s context
as borg’s notice.
Trait Implementations§
Source§impl Clone for PeerVersion
impl Clone for PeerVersion
Source§impl Debug for PeerVersion
impl Debug for PeerVersion
Source§impl<'de> Deserialize<'de> for PeerVersion
impl<'de> Deserialize<'de> for PeerVersion
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 PeerVersion
impl PartialEq for PeerVersion
Source§impl Serialize for PeerVersion
impl Serialize for PeerVersion
impl StructuralPartialEq for PeerVersion
Auto Trait Implementations§
impl Freeze for PeerVersion
impl RefUnwindSafe for PeerVersion
impl Send for PeerVersion
impl Sync for PeerVersion
impl Unpin for PeerVersion
impl UnsafeUnpin for PeerVersion
impl UnwindSafe for PeerVersion
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