pub struct Pong {
pub byteslen: u16,
}
Expand description
A pong message to be sent or received from a peer
Fields
byteslen: u16
The pong packet size. This field is not sent on the wire. byteslen zeros are sent.
Trait Implementations
sourceimpl Writeable for Pong
impl Writeable for Pong
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for Pong
Auto Trait Implementations
impl RefUnwindSafe for Pong
impl Send for Pong
impl Sync for Pong
impl Unpin for Pong
impl UnwindSafe for Pong
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more