Enum message_io::adapter::SendStatus[][src]

pub enum SendStatus {
    Sent,
    MaxPacketSizeExceeded(usizeusize),
    ResourceNotFound,
}

The following represents the posible status that crate::network::Network::send() call can return. The library do not encourage to perform the check of this status for each send() call, only in that cases where you need extra information about how the sending method was.

Variants

Sent

This status is received when the entire data has been sent. It does not guarantees that the packet have been successfully received by the endpoint. It means that the correspond adapter has sent the message to the OS without errors.

MaxPacketSizeExceeded(usizeusize)

This status is received in datagram-based protocols where there is a limit in the bytes that a packet can have. The first value is the length of the data that was attempt to send and the second one is the maximun offers by the datagram based protocol used.

ResourceNotFound

It means that the connection is not able for sending the message. This implies that a crate::network::NetEvent::Disconnected has been or will be generated. The library encourage to manage the disconnection error in the event queue based with the RemoveEndpoint received, and left this status to determinated in some cases if the message was not sent.

Trait Implementations

impl Clone for SendStatus[src]

impl Copy for SendStatus[src]

impl Debug for SendStatus[src]

impl PartialEq<SendStatus> for SendStatus[src]

impl StructuralPartialEq for SendStatus[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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,