Enum rust_ipfs::p2p::PubsubValidation
source · pub enum PubsubValidation {
Strict,
Permissive,
Anonymous,
Relaxed,
}
Variants§
Strict
See [ValidationMode::Strict
]
Permissive
See [ValidationMode::Permissive
]
Anonymous
See [ValidationMode::Anonymous
]
Relaxed
See [ValidationMode::None
]
Trait Implementations§
source§impl Clone for PubsubValidation
impl Clone for PubsubValidation
source§fn clone(&self) -> PubsubValidation
fn clone(&self) -> PubsubValidation
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 PubsubValidation
impl Debug for PubsubValidation
source§impl From<PubsubValidation> for ValidationMode
impl From<PubsubValidation> for ValidationMode
source§fn from(validation: PubsubValidation) -> Self
fn from(validation: PubsubValidation) -> Self
Converts to this type from the input type.
source§impl Ord for PubsubValidation
impl Ord for PubsubValidation
source§fn cmp(&self, other: &PubsubValidation) -> Ordering
fn cmp(&self, other: &PubsubValidation) -> 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 PubsubValidation
impl PartialEq for PubsubValidation
source§fn eq(&self, other: &PubsubValidation) -> bool
fn eq(&self, other: &PubsubValidation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PubsubValidation
impl PartialOrd for PubsubValidation
source§fn partial_cmp(&self, other: &PubsubValidation) -> Option<Ordering>
fn partial_cmp(&self, other: &PubsubValidation) -> 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 PubsubValidation
impl Eq for PubsubValidation
impl StructuralEq for PubsubValidation
impl StructuralPartialEq for PubsubValidation
Auto Trait Implementations§
impl RefUnwindSafe for PubsubValidation
impl Send for PubsubValidation
impl Sync for PubsubValidation
impl Unpin for PubsubValidation
impl UnwindSafe for PubsubValidation
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.