pub struct HelloPacket {
pub heartbeat_interval: u64,
pub _trace: Vec<String>,
}Expand description
A JSON packet which defines the heartbeat the client should adhere to.
Fields§
§heartbeat_interval: u64The heartbeat interval that the shard should follow.
_trace: Vec<String>An array of servers that the client is connected to.
Trait Implementations§
Source§impl Debug for HelloPacket
impl Debug for HelloPacket
Source§impl<'de> Deserialize<'de> for HelloPacket
impl<'de> Deserialize<'de> for HelloPacket
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 HelloPacket
impl RefUnwindSafe for HelloPacket
impl Send for HelloPacket
impl Sync for HelloPacket
impl Unpin for HelloPacket
impl UnwindSafe for HelloPacket
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