pub struct TransferMode(pub i64);
Tuple Fields§
§0: i64
Implementations§
source§impl TransferMode
impl TransferMode
pub const UNRELIABLE: TransferMode = _
pub const UNRELIABLE_ORDERED: TransferMode = _
pub const RELIABLE: TransferMode = _
Trait Implementations§
source§impl Clone for TransferMode
impl Clone for TransferMode
source§fn clone(&self) -> TransferMode
fn clone(&self) -> TransferMode
Returns a copy of the value. Read more
1.0.0 · 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 TransferMode
impl Debug for TransferMode
source§impl From<TransferMode> for i64
impl From<TransferMode> for i64
source§fn from(v: TransferMode) -> Self
fn from(v: TransferMode) -> Self
Converts to this type from the input type.
source§impl From<i64> for TransferMode
impl From<i64> for TransferMode
source§impl FromVariant for TransferMode
impl FromVariant for TransferMode
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
source§impl Hash for TransferMode
impl Hash for TransferMode
source§impl Ord for TransferMode
impl Ord for TransferMode
source§fn cmp(&self, other: &TransferMode) -> Ordering
fn cmp(&self, other: &TransferMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TransferMode> for TransferMode
impl PartialEq<TransferMode> for TransferMode
source§fn eq(&self, other: &TransferMode) -> bool
fn eq(&self, other: &TransferMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TransferMode> for TransferMode
impl PartialOrd<TransferMode> for TransferMode
source§fn partial_cmp(&self, other: &TransferMode) -> Option<Ordering>
fn partial_cmp(&self, other: &TransferMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TransferMode
impl Eq for TransferMode
impl StructuralEq for TransferMode
impl StructuralPartialEq for TransferMode
Auto Trait Implementations§
impl RefUnwindSafe for TransferMode
impl Send for TransferMode
impl Sync for TransferMode
impl Unpin for TransferMode
impl UnwindSafe for TransferMode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.