Enum rust_ipfs::p2p::BitswapProtocol
source · pub enum BitswapProtocol {
ProtocolLegacy,
Protocol100,
Protocol110,
Protocol120,
}
Variants§
Trait Implementations§
source§impl Clone for BitswapProtocol
impl Clone for BitswapProtocol
source§fn clone(&self) -> BitswapProtocol
fn clone(&self) -> BitswapProtocol
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 BitswapProtocol
impl Debug for BitswapProtocol
source§impl Default for BitswapProtocol
impl Default for BitswapProtocol
source§fn default() -> BitswapProtocol
fn default() -> BitswapProtocol
Returns the “default value” for a type. Read more
source§impl From<BitswapProtocol> for ProtocolId
impl From<BitswapProtocol> for ProtocolId
source§fn from(value: BitswapProtocol) -> Self
fn from(value: BitswapProtocol) -> Self
Converts to this type from the input type.
source§impl Hash for BitswapProtocol
impl Hash for BitswapProtocol
source§impl Ord for BitswapProtocol
impl Ord for BitswapProtocol
source§fn cmp(&self, other: &BitswapProtocol) -> Ordering
fn cmp(&self, other: &BitswapProtocol) -> 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<BitswapProtocol> for BitswapProtocol
impl PartialEq<BitswapProtocol> for BitswapProtocol
source§fn eq(&self, other: &BitswapProtocol) -> bool
fn eq(&self, other: &BitswapProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BitswapProtocol> for BitswapProtocol
impl PartialOrd<BitswapProtocol> for BitswapProtocol
source§fn partial_cmp(&self, other: &BitswapProtocol) -> Option<Ordering>
fn partial_cmp(&self, other: &BitswapProtocol) -> 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 BitswapProtocol
impl Eq for BitswapProtocol
impl StructuralEq for BitswapProtocol
impl StructuralPartialEq for BitswapProtocol
Auto Trait Implementations§
impl RefUnwindSafe for BitswapProtocol
impl Send for BitswapProtocol
impl Sync for BitswapProtocol
impl Unpin for BitswapProtocol
impl UnwindSafe for BitswapProtocol
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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.