Enum rust_ipfs::p2p::UpdateMode  
source · pub enum UpdateMode {
    Receive,
    Read,
}Variants§
Trait Implementations§
source§impl Clone for UpdateMode
 
impl Clone for UpdateMode
source§fn clone(&self) -> UpdateMode
 
fn clone(&self) -> UpdateMode
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 UpdateMode
 
impl Debug for UpdateMode
source§impl Default for UpdateMode
 
impl Default for UpdateMode
source§fn default() -> UpdateMode
 
fn default() -> UpdateMode
Returns the “default value” for a type. Read more
source§impl From<UpdateMode> for WindowUpdateMode
 
impl From<UpdateMode> for WindowUpdateMode
source§fn from(mode: UpdateMode) -> Self
 
fn from(mode: UpdateMode) -> Self
Converts to this type from the input type.
source§impl Hash for UpdateMode
 
impl Hash for UpdateMode
source§impl Ord for UpdateMode
 
impl Ord for UpdateMode
source§fn cmp(&self, other: &UpdateMode) -> Ordering
 
fn cmp(&self, other: &UpdateMode) -> 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 UpdateMode
 
impl PartialEq for UpdateMode
source§fn eq(&self, other: &UpdateMode) -> bool
 
fn eq(&self, other: &UpdateMode) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for UpdateMode
 
impl PartialOrd for UpdateMode
source§fn partial_cmp(&self, other: &UpdateMode) -> Option<Ordering>
 
fn partial_cmp(&self, other: &UpdateMode) -> 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 UpdateMode
impl Eq for UpdateMode
impl StructuralEq for UpdateMode
impl StructuralPartialEq for UpdateMode
Auto Trait Implementations§
impl RefUnwindSafe for UpdateMode
impl Send for UpdateMode
impl Sync for UpdateMode
impl Unpin for UpdateMode
impl UnwindSafe for UpdateMode
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.