pub enum Reliability {
FireAndForget,
Reliable,
}Expand description
Reliability mode chosen per stream.
Variants§
FireAndForget
Send packets and forget. No retransmission, no ordering recovery, no ACK/NACK tracking. Monotonic sequence numbers on the wire so callers that care can detect gaps / reorder themselves.
Reliable
Retransmit lost packets based on NACKs from the receiver. In-order delivery within the stream.
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