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
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.
This status is received in packet-based protocols where there is a limit in the bytes that a packet can have.
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.
The resource can not perform the required send operation. Usually this is due because it is performing the handshake.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SendStatus
impl Send for SendStatus
impl Sync for SendStatus
impl Unpin for SendStatus
impl UnwindSafe for SendStatus
Blanket Implementations
Mutably borrows from an owned value. Read more