pub struct PingRequest {
pub passthrough: Option<Value>,
pub ping: i64,
pub req_id: Option<i64>,
}
Expand description
To send the ping request to the server. Mostly used to test the connection or to keep it alive.
Fields§
§passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
ping: i64
Must be 1
\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for PingRequest
impl Clone for PingRequest
Source§fn clone(&self) -> PingRequest
fn clone(&self) -> PingRequest
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 PingRequest
impl Debug for PingRequest
Source§impl<'de> Deserialize<'de> for PingRequest
impl<'de> Deserialize<'de> for PingRequest
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
Auto Trait Implementations§
impl Freeze for PingRequest
impl RefUnwindSafe for PingRequest
impl Send for PingRequest
impl Sync for PingRequest
impl Unpin for PingRequest
impl UnwindSafe for PingRequest
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