pub enum RelayConnectionStatus {
Disconnected {
error: Option<String>,
},
Connecting,
Connected {
connected_address: SocketAddr,
},
Failed {
error: String,
},
}Expand description
Connection status for a relay
Variants§
Disconnected
Not connected
Connecting
Currently connecting
Connected
Connected and operational to a specific address
Fields
§
connected_address: SocketAddrThe specific address that the connection succeeded on
Failed
Connection failed
Trait Implementations§
Source§impl Clone for RelayConnectionStatus
impl Clone for RelayConnectionStatus
Source§fn clone(&self) -> RelayConnectionStatus
fn clone(&self) -> RelayConnectionStatus
Returns a duplicate 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 RelayConnectionStatus
impl Debug for RelayConnectionStatus
Source§impl PartialEq for RelayConnectionStatus
impl PartialEq for RelayConnectionStatus
impl Eq for RelayConnectionStatus
impl StructuralPartialEq for RelayConnectionStatus
Auto Trait Implementations§
impl Freeze for RelayConnectionStatus
impl RefUnwindSafe for RelayConnectionStatus
impl Send for RelayConnectionStatus
impl Sync for RelayConnectionStatus
impl Unpin for RelayConnectionStatus
impl UnwindSafe for RelayConnectionStatus
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more