Enum nostr_types::RelayUsage
source · pub enum RelayUsage {
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 RelayUsage
impl Clone for RelayUsage
source§fn clone(&self) -> RelayUsage
fn clone(&self) -> RelayUsage
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 RelayUsage
impl Debug for RelayUsage
source§impl Default for RelayUsage
impl Default for RelayUsage
source§fn default() -> RelayUsage
fn default() -> RelayUsage
Returns the “default value” for a type. Read more
source§impl PartialEq for RelayUsage
impl PartialEq for RelayUsage
source§fn eq(&self, other: &RelayUsage) -> bool
fn eq(&self, other: &RelayUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelayUsage
impl Eq for RelayUsage
impl StructuralPartialEq for RelayUsage
Auto Trait Implementations§
impl RefUnwindSafe for RelayUsage
impl Send for RelayUsage
impl Sync for RelayUsage
impl Unpin for RelayUsage
impl UnwindSafe for RelayUsage
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