pub struct PeerMsg {
pub peer_id: PeerID,
pub addr: Addr,
pub port: Port,
pub discovery_port: Port,
}
Expand description
PeerMsg containing information about a peer.
Fields§
§peer_id: PeerID
§addr: Addr
§port: Port
§discovery_port: Port
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for PeerMsg
impl<'__de> BorrowDecode<'__de> for PeerMsg
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl Eq for PeerMsg
impl StructuralPartialEq for PeerMsg
Auto Trait Implementations§
impl Freeze for PeerMsg
impl RefUnwindSafe for PeerMsg
impl Send for PeerMsg
impl Sync for PeerMsg
impl Unpin for PeerMsg
impl UnwindSafe for PeerMsg
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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