Enum message_io::network::adapter::SendStatus
source · 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§
source§impl Clone for SendStatus
impl Clone for SendStatus
source§fn clone(&self) -> SendStatus
fn clone(&self) -> SendStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendStatus
impl Debug for SendStatus
source§impl PartialEq for SendStatus
impl PartialEq for SendStatus
source§fn eq(&self, other: &SendStatus) -> bool
fn eq(&self, other: &SendStatus) -> bool
self
and other
values to be equal, and is used
by ==
.