Enum message_io::network::SendingStatus[][src]

pub enum SendingStatus {
    Sent,
    MaxPacketSizeExceeded(usizeusize),
    RemovedEndpoint,
}

The following represents the posible status that a send()/send_all() call can return. The library do not encourage to perform the match 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.

RemovedEndpoint

It means that the connection is not able for sending the message. This implies that a crate::network::NetEvent::RemovedEndpoint 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.

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, 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.