pub enum Channel {
Reliable,
Unreliable,
}Expand description
Which of the two channels a message travels on.
Variants§
Reliable
Ordered and retransmitted until delivered. For state that must arrive: chat, inventory, match results.
Unreliable
Unordered and never retransmitted: a lost message stays lost. For state that the next one replaces: positions, inputs.
Trait Implementations§
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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