Enum message_io::adapter::SendStatus [−][src]
The following represents the posible status that crate::network::Network::send()
and crate::network::Network::send_all()
calls 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 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.
It means that the connection is not able for sending the message.
This implies that a crate::network::NetEvent::Disconnected
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.
Trait Implementations
impl Clone for SendStatus
[src]
fn clone(&self) -> SendStatus
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SendStatus
[src]
impl Debug for SendStatus
[src]
impl PartialEq<SendStatus> for SendStatus
[src]
fn eq(&self, other: &SendStatus) -> bool
[src]
fn ne(&self, other: &SendStatus) -> bool
[src]
impl StructuralPartialEq for SendStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for SendStatus
[src]
impl Send for SendStatus
[src]
impl Sync for SendStatus
[src]
impl Unpin for SendStatus
[src]
impl UnwindSafe for SendStatus
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,