pub struct Heartbeat(pub Option<u64>);Expand description
A Heartbeat
(opcode 1): the last sequence number received, or None if no dispatch has been received
yet.
discord.js counterpart: GatewayHeartbeat (discord-api-types).
Tuple Fields§
§0: Option<u64>Trait Implementations§
impl Copy for Heartbeat
impl Eq for Heartbeat
Source§impl GatewayCommand for Heartbeat
impl GatewayCommand for Heartbeat
impl StructuralPartialEq for Heartbeat
Auto Trait Implementations§
impl Freeze for Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnsafeUnpin for Heartbeat
impl UnwindSafe for Heartbeat
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