Enum nostr_sdk::RelayMetadata
source · pub enum RelayMetadata {
Read,
Write,
}
Expand description
Relay Metadata
Variants§
Trait Implementations§
source§impl Clone for RelayMetadata
impl Clone for RelayMetadata
source§fn clone(&self) -> RelayMetadata
fn clone(&self) -> RelayMetadata
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 RelayMetadata
impl Debug for RelayMetadata
source§impl Display for RelayMetadata
impl Display for RelayMetadata
source§impl FromStr for RelayMetadata
impl FromStr for RelayMetadata
source§impl Hash for RelayMetadata
impl Hash for RelayMetadata
source§impl Ord for RelayMetadata
impl Ord for RelayMetadata
source§fn cmp(&self, other: &RelayMetadata) -> Ordering
fn cmp(&self, other: &RelayMetadata) -> 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<RelayMetadata> for RelayMetadata
impl PartialEq<RelayMetadata> for RelayMetadata
source§fn eq(&self, other: &RelayMetadata) -> bool
fn eq(&self, other: &RelayMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RelayMetadata> for RelayMetadata
impl PartialOrd<RelayMetadata> for RelayMetadata
source§fn partial_cmp(&self, other: &RelayMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &RelayMetadata) -> 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 Eq for RelayMetadata
impl StructuralEq for RelayMetadata
impl StructuralPartialEq for RelayMetadata
Auto Trait Implementations§
impl RefUnwindSafe for RelayMetadata
impl Send for RelayMetadata
impl Sync for RelayMetadata
impl Unpin for RelayMetadata
impl UnwindSafe for RelayMetadata
Blanket Implementations§
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> 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.