pub enum SendMode {
Reliable,
Unreliable(u16),
}
Expand description
Mode / channel by which a packet may be sent.
Variants§
Reliable
The packet will be sent and resent until delivered.
Unreliable(u16)
The packet will be sent once, and may or may not be delievered. If the packet is not sent within the provided timeout (in milliseconds), it will be discarded instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendMode
impl RefUnwindSafe for SendMode
impl Send for SendMode
impl Sync for SendMode
impl Unpin for SendMode
impl UnwindSafe for SendMode
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