Enum nostr_sdk::relay::RelayStatus
source · pub enum RelayStatus {
Initialized,
Connecting,
Connected,
Disconnected,
Stopped,
Terminated,
}
Expand description
Relay connection status
Variants§
Initialized
Relay initialized
Connecting
Connecting
Connected
Relay connected
Disconnected
Relay disconnected, will retry to connect again
Stopped
Stop
Terminated
Relay completely disconnected
Trait Implementations§
source§impl Clone for RelayStatus
impl Clone for RelayStatus
source§fn clone(&self) -> RelayStatus
fn clone(&self) -> RelayStatus
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 RelayStatus
impl Debug for RelayStatus
source§impl Display for RelayStatus
impl Display for RelayStatus
source§impl Hash for RelayStatus
impl Hash for RelayStatus
source§impl Ord for RelayStatus
impl Ord for RelayStatus
source§fn cmp(&self, other: &RelayStatus) -> Ordering
fn cmp(&self, other: &RelayStatus) -> 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<RelayStatus> for RelayStatus
impl PartialEq<RelayStatus> for RelayStatus
source§fn eq(&self, other: &RelayStatus) -> bool
fn eq(&self, other: &RelayStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RelayStatus> for RelayStatus
impl PartialOrd<RelayStatus> for RelayStatus
source§fn partial_cmp(&self, other: &RelayStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &RelayStatus) -> 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 RelayStatus
impl Eq for RelayStatus
impl StructuralEq for RelayStatus
impl StructuralPartialEq for RelayStatus
Auto Trait Implementations§
impl RefUnwindSafe for RelayStatus
impl Send for RelayStatus
impl Sync for RelayStatus
impl Unpin for RelayStatus
impl UnwindSafe for RelayStatus
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.