#[repr(isize)]pub enum SessionSendDataMode {
Reliable = 0,
Unreliable = 1,
}Variants§
Reliable = 0
Guaranteed reliable and in-order delivery.
The framework should guarantee delivery of each message, enqueueing and retransmitting data as needed, and ensuring in-order delivery
Use this message type for application-critical data.
Unreliable = 1
Sent immediately without queuing, no guaranteed delivery.
Messages to peers should be sent immediately without socket-level queueing. If a message cannot be sent immediately, it should be dropped. The order of messages is not guaranteed.
Use this message type for data that ceases to be relevant if delayed, such as real-time gaming data.
Trait Implementations§
Source§impl Clone for SendDataMode
impl Clone for SendDataMode
Source§fn clone(&self) -> SendDataMode
fn clone(&self) -> SendDataMode
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 moreimpl Copy for SendDataMode
Source§impl Debug for SendDataMode
impl Debug for SendDataMode
impl Eq for SendDataMode
Source§impl PartialEq for SendDataMode
impl PartialEq for SendDataMode
Source§fn eq(&self, other: &SendDataMode) -> bool
fn eq(&self, other: &SendDataMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SendDataMode
Auto Trait Implementations§
impl Freeze for SendDataMode
impl RefUnwindSafe for SendDataMode
impl Send for SendDataMode
impl Sync for SendDataMode
impl Unpin for SendDataMode
impl UnsafeUnpin for SendDataMode
impl UnwindSafe for SendDataMode
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