pub enum Reliability {
Reliable,
Unreliable,
}Expand description
Whether the transport delivers reliably, which decides half the timer behaviour.
Variants§
Reliable
TCP, TLS, WebSocket: no retransmission timers, and the absorption timers fire at once.
Unreliable
UDP: retransmit until answered.
Implementations§
Source§impl Reliability
impl Reliability
Sourcepub fn is_reliable(self) -> bool
pub fn is_reliable(self) -> bool
Whether this transport retransmits.
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 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 ==.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