pub struct VerAckMsg {
pub peer_id: PeerID,
pub ack: bool,
}Expand description
Acknowledges a Version message; ack=false means the responder
rejected the proposed version/protocol mix.
Fields§
§peer_id: PeerID§ack: boolTrait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for VerAckMsg
impl<'__de, __Context> BorrowDecode<'__de, __Context> for VerAckMsg
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( 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 UnsafeUnpin 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