pub struct VerAckMsg {
pub peer_id: PeerID,
pub ack: bool,
}
Expand description
VerAck message acknowledges the receipt of a Version message. The message consists of the peer ID and an acknowledgment boolean value indicating whether the version is accepted.
Fields§
§peer_id: PeerID
§ack: bool
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for VerAckMsg
impl<'__de> BorrowDecode<'__de> for VerAckMsg
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.
Auto Trait Implementations§
impl Freeze for VerAckMsg
impl RefUnwindSafe for VerAckMsg
impl Send for VerAckMsg
impl Sync for VerAckMsg
impl Unpin for VerAckMsg
impl UnwindSafe for VerAckMsg
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