pub struct PeerCapabilities {
pub peer_id: Vec<u8>,
pub supports_rfc_nat: bool,
pub discovered_at: Instant,
}
Expand description
Helper to determine if a peer supports RFC frames
Fields§
§peer_id: Vec<u8>
Peer’s connection ID
supports_rfc_nat: bool
Whether peer supports RFC NAT traversal
discovered_at: Instant
When we learned about this capability
Trait Implementations§
Source§impl Clone for PeerCapabilities
impl Clone for PeerCapabilities
Source§fn clone(&self) -> PeerCapabilities
fn clone(&self) -> PeerCapabilities
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 moreAuto Trait Implementations§
impl Freeze for PeerCapabilities
impl RefUnwindSafe for PeerCapabilities
impl Send for PeerCapabilities
impl Sync for PeerCapabilities
impl Unpin for PeerCapabilities
impl UnwindSafe for PeerCapabilities
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