[][src]Struct koibumi_core::message::Pong

pub struct Pong { /* fields omitted */ }

A "pong" message that is sent as a reply to a ping message.

Implementations

impl Pong[src]

pub fn new() -> Self[src]

Constructs a pong message with empty payload.

pub fn with_payload(payload: Vec<u8>) -> Self[src]

Constructs a pong message with a payload.

pub fn payload(&self) -> &[u8][src]

Returns the payload.

Trait Implementations

impl Clone for Pong[src]

impl Debug for Pong[src]

impl Default for Pong[src]

impl Eq for Pong[src]

impl Hash for Pong[src]

impl Message for Pong[src]

impl PartialEq<Pong> for Pong[src]

impl SizedReadFrom for Pong[src]

impl StructuralEq for Pong[src]

impl StructuralPartialEq for Pong[src]

impl WriteTo for Pong[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pack for T where
    T: WriteTo + Message
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SizedReadFromExact for T where
    T: SizedReadFrom
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.