pub struct RelayConnection {
pub key: RelayCacheKey,
pub created_at: Instant,
pub last_used: Instant,
pub alive: bool,
pub capabilities: RelayCapabilities,
}Fields§
§key: RelayCacheKey§created_at: Instant§last_used: Instant§alive: bool§capabilities: RelayCapabilitiesTrait Implementations§
Source§impl Clone for RelayConnection
impl Clone for RelayConnection
Source§fn clone(&self) -> RelayConnection
fn clone(&self) -> RelayConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelayConnection
impl Debug for RelayConnection
Source§impl PartialEq for RelayConnection
impl PartialEq for RelayConnection
Source§fn eq(&self, other: &RelayConnection) -> bool
fn eq(&self, other: &RelayConnection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RelayConnection
impl StructuralPartialEq for RelayConnection
Auto Trait Implementations§
impl Freeze for RelayConnection
impl RefUnwindSafe for RelayConnection
impl Send for RelayConnection
impl Sync for RelayConnection
impl Unpin for RelayConnection
impl UnsafeUnpin for RelayConnection
impl UnwindSafe for RelayConnection
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,
§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.