#[repr(u32)]pub enum RelayUsage {
FallbackRead = 1,
Archive = 2,
Inbox = 8,
Outbox = 16,
Directory = 32,
Dm = 128,
Config = 256,
Search = 512,
}
Expand description
A way that a user uses a Relay
Variants§
FallbackRead = 1
User seeks events here if they are not otherwise found
Archive = 2
User writes here but does not advertise it
Inbox = 8
User accepts posts here from the public that tag them
Outbox = 16
User posts here for the public
Directory = 32
User seeks relay lists here (index, discover)
Dm = 128
User accepts DMs here
Config = 256
user stores and reads back their own configurations here
Search = 512
User does NIP-50 SEARCH here
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 Hash for RelayUsage
impl Hash for RelayUsage
source§impl PartialEq for RelayUsage
impl PartialEq for RelayUsage
source§impl TryFrom<u32> for RelayUsage
impl TryFrom<u32> for RelayUsage
impl Copy for RelayUsage
impl Eq for RelayUsage
impl StructuralPartialEq for RelayUsage
Auto Trait Implementations§
impl Freeze for RelayUsage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)