Enum de_net::Reliability
source · pub enum Reliability {
Unreliable,
Unordered,
SemiOrdered,
}
Variants§
Unreliable
There are no guarantees on reliability, ordering or duplicate delivery of the package.
Unordered
Non-duplicate delivery of the package is guaranteed. There are no guarantees on ordering of the package with respect to other packages.
SemiOrdered
Non-duplicate delivery of the package is guaranteed. The package is guaranteed to be delivered after all other previously reliably sent packages. There are no guarantees on ordering of the package with respect to other packages sent after this one.
Implementations§
source§impl Reliability
impl Reliability
fn to_bits(self) -> u8
fn from_bits(bits: u8) -> Result<Self, HeaderError>
sourcepub fn is_reliable(&self) -> bool
pub fn is_reliable(&self) -> bool
Returns true if the package is delivered reliably, independently on ordering.
sourcepub fn is_ordered(&self) -> bool
pub fn is_ordered(&self) -> bool
Returns true if there are any guarantees on ordering of the package.
Trait Implementations§
source§impl Clone for Reliability
impl Clone for Reliability
source§fn clone(&self) -> Reliability
fn clone(&self) -> Reliability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Reliability
impl Debug for Reliability
source§impl Display for Reliability
impl Display for Reliability
source§impl PartialEq for Reliability
impl PartialEq for Reliability
source§fn eq(&self, other: &Reliability) -> bool
fn eq(&self, other: &Reliability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Reliability
impl Eq for Reliability
impl StructuralPartialEq for Reliability
Auto Trait Implementations§
impl Freeze for Reliability
impl RefUnwindSafe for Reliability
impl Send for Reliability
impl Sync for Reliability
impl Unpin for Reliability
impl UnwindSafe for Reliability
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.