Enum nostr_types::RelayListUsage
source · pub enum RelayListUsage {
Inbox,
Outbox,
Both,
}
Expand description
Relay Usage
Variants§
Inbox
The relay is used as an inbox (called ‘read’ in kind-10002)
Outbox
The relay is used as an outbox (called ‘write’ in kind-10002)
Both
The relay is used both as an inbox and an outbox
Implementations§
Trait Implementations§
source§impl Clone for RelayListUsage
impl Clone for RelayListUsage
source§fn clone(&self) -> RelayListUsage
fn clone(&self) -> RelayListUsage
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 RelayListUsage
impl Debug for RelayListUsage
source§impl Default for RelayListUsage
impl Default for RelayListUsage
source§fn default() -> RelayListUsage
fn default() -> RelayListUsage
Returns the “default value” for a type. Read more
source§impl PartialEq for RelayListUsage
impl PartialEq for RelayListUsage
source§fn eq(&self, other: &RelayListUsage) -> bool
fn eq(&self, other: &RelayListUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelayListUsage
impl Eq for RelayListUsage
impl StructuralPartialEq for RelayListUsage
Auto Trait Implementations§
impl Freeze for RelayListUsage
impl RefUnwindSafe for RelayListUsage
impl Send for RelayListUsage
impl Sync for RelayListUsage
impl Unpin for RelayListUsage
impl UnwindSafe for RelayListUsage
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