pub struct HeartbeatClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> HeartbeatClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> HeartbeatClient<S>
pub fn new(stream: S) -> Self
pub async fn recv_message(&mut self) -> Result<Value, HeartbeatError>
pub async fn send_polo(&mut self) -> Result<(), HeartbeatError>
pub async fn ping(&mut self) -> Result<Value, HeartbeatError>
Auto Trait Implementations§
impl<S> Freeze for HeartbeatClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for HeartbeatClient<S>where
S: RefUnwindSafe,
impl<S> Send for HeartbeatClient<S>where
S: Send,
impl<S> Sync for HeartbeatClient<S>where
S: Sync,
impl<S> Unpin for HeartbeatClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for HeartbeatClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for HeartbeatClient<S>where
S: UnwindSafe,
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