Struct Ping

pub struct Ping { /* private fields */ }

Sent via PingPong to send a PING frame to a peer.

Implementations

impl Ping

fn opaque() -> Ping

Creates a new opaque Ping to be sent via a PingPong.

The payload is "opaque", such that it shouldn't be depended on.

Trait Implementations

impl Debug for Ping

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for Ping

impl RefUnwindSafe for Ping

impl Send for Ping

impl Sync for Ping

impl Unpin for Ping

impl UnsafeUnpin for Ping

impl UnwindSafe for Ping

Blanket Implementations

impl<T> Any for Ping where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Ping where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Ping where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Ping

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Ping

impl<T> WithSubscriber for Ping

impl<T, U> Into<U> for Ping where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Ping where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Ping where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>