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

pub enum SendStatus {
    Sent,
    MaxPacketSizeExceeded,
    ResourceNotFound,
    ResourceNotAvailable,
}
Expand description

The following represents the posible status that crate::network::NetworkController::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

This status is received in packet-based protocols where there is a limit in the bytes that a packet can have.

ResourceNotFound

It means that the message could not be sent by the specified ResourceId. This implies that a crate::network::NetEvent::Disconnected has happened or that the resource never existed.

ResourceNotAvailable

The resource can not perform the required send operation. Usually this is due because it is performing the handshake.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.