pub struct PeerInfo {
pub device_id: GrainId,
pub name: String,
pub node_id: String,
pub connected: bool,
pub priority: u8,
pub availability: Option<u8>,
}Expand description
One device of the workgroup.
Fields§
§device_id: GrainIdIts device id.
name: StringIts name.
node_id: StringIts iroh node id.
connected: boolWhether the bridge currently holds a connection to it.
priority: u8Its election priority, as its ledger record says.
availability: Option<u8>Its availability tier, as its own Hello reports it (#190). None until measured.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerInfo
impl<'de> Deserialize<'de> for PeerInfo
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
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