[−][src]Enum enet::PacketMode
Mode that can be set when transmitting a packet.
ENet does not support reliable but unsequenced packets.
Variants
UnreliableSequenced
The packet will be sent unreliably but sequenced (ENet default).
UnreliableUnsequenced
The packet will be sent unreliably and unsequenced.
ReliableSequenced
The packet will be sent reliably and sequenced with other reliable packets.
Methods
impl PacketMode
[src]
pub fn is_reliable(&self) -> bool
[src]
Returns whether this represents a reliable mode.
pub fn is_sequenced(&self) -> bool
[src]
Returns whether this represents a sequenced mode.
Trait Implementations
impl Eq for PacketMode
[src]
impl Copy for PacketMode
[src]
impl PartialEq<PacketMode> for PacketMode
[src]
fn eq(&self, other: &PacketMode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for PacketMode
[src]
fn clone(&self) -> PacketMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PacketMode
[src]
impl Hash for PacketMode
[src]
Auto Trait Implementations
impl Send for PacketMode
impl Sync for PacketMode
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,