Struct PingPong
pub struct PingPong { /* private fields */ }
A handle to send and receive PING frames with the peer.
Implementations
impl PingPong
async fn ping(&mut self, ping: Ping) -> Result<Pong, Error>Send a PING frame and wait for the peer to send the pong.
Trait Implementations
impl Debug for PingPong
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl !RefUnwindSafe for PingPong
impl !UnwindSafe for PingPong
impl Freeze for PingPong
impl Send for PingPong
impl Sync for PingPong
impl Unpin for PingPong
impl UnsafeUnpin for PingPong
Blanket Implementations
impl<T> Any for PingPong
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PingPong
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PingPong
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PingPong
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for PingPong
impl<T> WithSubscriber for PingPong
impl<T, U> Into<U> for PingPong
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PingPong
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PingPong
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>