pub struct Pong<T>(pub T);
Expand description
A Pong frame sent in response to a Ping frame must have identical
“Application data” as found in the message body of the Ping frame being replied to.
A Pong frame MAY be sent unsolicited. This serves as a unidirectional heartbeat. A response to an unsolicited Pong frame is not expected.
Formats the value using the given formatter.
Read more
Encode websocket data frame.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.