pub struct Ping {
pub ponglen: u16,
pub byteslen: u16,
}Expand description
A ping message to be sent to or received from a peer.
Fields§
§ponglen: u16The desired response length.
byteslen: u16The ping packet size.
This field is not sent on the wire. byteslen zeros are sent.
Trait Implementations§
Source§impl Writeable for Ping
impl Writeable for Ping
impl Eq for Ping
impl StructuralPartialEq for Ping
Auto Trait Implementations§
impl Freeze for Ping
impl RefUnwindSafe for Ping
impl Send for Ping
impl Sync for Ping
impl Unpin for Ping
impl UnwindSafe for Ping
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