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
sourceimpl Clone for SendStatus
impl Clone for SendStatus
sourcefn clone(&self) -> SendStatus
fn clone(&self) -> SendStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SendStatus
impl Debug for SendStatus
sourceimpl PartialEq<SendStatus> for SendStatus
impl PartialEq<SendStatus> for SendStatus
impl Copy for SendStatus
impl Eq for SendStatus
impl StructuralEq for SendStatus
impl StructuralPartialEq for SendStatus
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more