pub struct PeerConnection {
pub party_id: usize,
pub address: String,
pub connected: bool,
}Expand description
Connection to a peer party
Fields§
§party_id: usizePeer party ID
address: StringPeer address
connected: boolConnection state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerConnection
impl RefUnwindSafe for PeerConnection
impl Send for PeerConnection
impl Sync for PeerConnection
impl Unpin for PeerConnection
impl UnwindSafe for PeerConnection
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