[][src]Struct koibumi_core::message::Ping

pub struct Ping { /* fields omitted */ }

A "ping" message that is used to keep a network connection alive.

Implementations

impl Ping[src]

pub fn new() -> Self[src]

Constructs a ping message with empty payload.

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

Constructs a ping message with a payload.

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

Returns the payload.

Trait Implementations

impl Clone for Ping[src]

impl Debug for Ping[src]

impl Default for Ping[src]

impl Eq for Ping[src]

impl Hash for Ping[src]

impl Message for Ping[src]

impl PartialEq<Ping> for Ping[src]

impl SizedReadFrom for Ping[src]

impl StructuralEq for Ping[src]

impl StructuralPartialEq for Ping[src]

impl WriteTo for Ping[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.