pub enum AnnounceKind {
Partial = 0,
Complete = 1,
}
Expand description
Announce kind
Variants§
Partial = 0
The peer supposedly has some of the data.
Complete = 1
The peer supposedly has the complete data.
Implementations§
source§impl AnnounceKind
impl AnnounceKind
pub fn from_complete(complete: bool) -> Self
Trait Implementations§
source§impl Clone for AnnounceKind
impl Clone for AnnounceKind
source§fn clone(&self) -> AnnounceKind
fn clone(&self) -> AnnounceKind
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 AnnounceKind
impl Debug for AnnounceKind
source§impl<'de> Deserialize<'de> for AnnounceKind
impl<'de> Deserialize<'de> for AnnounceKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for AnnounceKind
impl Ord for AnnounceKind
source§fn cmp(&self, other: &AnnounceKind) -> Ordering
fn cmp(&self, other: &AnnounceKind) -> 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 for AnnounceKind
impl PartialEq for AnnounceKind
source§fn eq(&self, other: &AnnounceKind) -> bool
fn eq(&self, other: &AnnounceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AnnounceKind
impl PartialOrd for AnnounceKind
source§fn partial_cmp(&self, other: &AnnounceKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AnnounceKind) -> 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 moresource§impl Serialize for AnnounceKind
impl Serialize for AnnounceKind
impl Copy for AnnounceKind
impl Eq for AnnounceKind
impl StructuralPartialEq for AnnounceKind
Auto Trait Implementations§
impl Freeze for AnnounceKind
impl RefUnwindSafe for AnnounceKind
impl Send for AnnounceKind
impl Sync for AnnounceKind
impl Unpin for AnnounceKind
impl UnwindSafe for AnnounceKind
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.