pub struct PongResponse {
pub timestamp: i64,
}Expand description
心跳回复消息
Fields§
§timestamp: i64Implementations§
Source§impl PongResponse
impl PongResponse
pub fn new() -> Self
pub fn create_packet(self) -> Packet<Self>
Trait Implementations§
Source§impl Clone for PongResponse
impl Clone for PongResponse
Source§fn clone(&self) -> PongResponse
fn clone(&self) -> PongResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PongResponse
impl Debug for PongResponse
Source§impl Default for PongResponse
impl Default for PongResponse
Source§fn default() -> PongResponse
fn default() -> PongResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PongResponse
impl<'de> Deserialize<'de> for PongResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for PongResponse
impl Message for PongResponse
Source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
获取消息类型
Auto Trait Implementations§
impl Freeze for PongResponse
impl RefUnwindSafe for PongResponse
impl Send for PongResponse
impl Sync for PongResponse
impl Unpin for PongResponse
impl UnsafeUnpin for PongResponse
impl UnwindSafe for PongResponse
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