pub struct HelloPayload {
pub heartbeat_interval: u64,
}Expand description
Payload for the Hello opcode (op 10).
Received immediately after connecting to the Gateway.
Fields§
§heartbeat_interval: u64Interval (in milliseconds) at which to send heartbeats.
Trait Implementations§
Source§impl Clone for HelloPayload
impl Clone for HelloPayload
Source§fn clone(&self) -> HelloPayload
fn clone(&self) -> HelloPayload
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 HelloPayload
impl Debug for HelloPayload
Source§impl<'de> Deserialize<'de> for HelloPayload
impl<'de> Deserialize<'de> for HelloPayload
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 HelloPayload
impl RefUnwindSafe for HelloPayload
impl Send for HelloPayload
impl Sync for HelloPayload
impl Unpin for HelloPayload
impl UnwindSafe for HelloPayload
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