pub enum Reliability {
Unreliable,
Guaranteed,
Unique,
}Expand description
Reliability of a data stream.
Defines whether the sent data should be considered delivered.
Properties have always a unique reliability.
See Reliability for more information.
Variants§
Unreliable
If the transport sends the data
Guaranteed
When we know the data has been received at least once.
Unique
When we know the data has been received exactly once.
Implementations§
Source§impl Reliability
impl Reliability
Sourcepub fn is_unreliable(&self) -> bool
pub fn is_unreliable(&self) -> bool
Returns true if the reliability is Unreliable.
Sourcepub fn is_guaranteed(&self) -> bool
pub fn is_guaranteed(&self) -> bool
Returns true if the reliability is Guaranteed.
Trait Implementations§
Source§impl Clone for Reliability
impl Clone for Reliability
Source§fn clone(&self) -> Reliability
fn clone(&self) -> Reliability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for Reliability
impl Default for Reliability
Source§fn default() -> Reliability
fn default() -> Reliability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Reliability
impl<'de> Deserialize<'de> for Reliability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Reliability
impl Display for Reliability
Source§impl Ord for Reliability
impl Ord for Reliability
Source§fn cmp(&self, other: &Reliability) -> Ordering
fn cmp(&self, other: &Reliability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Reliability
impl PartialEq for Reliability
Source§fn eq(&self, other: &Reliability) -> bool
fn eq(&self, other: &Reliability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Reliability
impl PartialOrd for Reliability
Source§impl Serialize for Reliability
impl Serialize for Reliability
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 UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.