[][src]Enum reliudp::MessageType

pub enum MessageType {
    Forgettable,
    KeyExpirableMessage(u32),
    KeyMessage,
}

Represents the type of message you are able to send (key, forgettable, ...)

Variants

Forgettable

Forgettable message type.

If the message did not make it through the end the first time, abandon this message.

KeyExpirableMessage(u32)

A Key but expirable message.

The parameter holds the number of frames this message expires after. If this parameter is 0, the behavior is the same as Forgettable.

As long as this message is still valid, it will try to re-send messages if Socket suspects it did not get the message in time.

KeyMessage

A key message that should arrive everytime.

A long at the socket doesn't receive the correct ack for this message, this message will be re-sent.

Methods

impl MessageType[src]

pub fn has_ack(self) -> bool[src]

Trait Implementations

impl Clone for MessageType[src]

impl Copy for MessageType[src]

impl Debug for MessageType[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> 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.