pub struct ConnectionId<P> {
pub send: u16,
pub recv: u16,
pub peer_id: P,
}
Fields§
§send: u16
§recv: u16
§peer_id: P
Trait Implementations§
Source§impl<P: Clone> Clone for ConnectionId<P>
impl<P: Clone> Clone for ConnectionId<P>
Source§fn clone(&self) -> ConnectionId<P>
fn clone(&self) -> ConnectionId<P>
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<P: Debug> Debug for ConnectionId<P>
impl<P: Debug> Debug for ConnectionId<P>
Source§impl<P: Hash> Hash for ConnectionId<P>
impl<P: Hash> Hash for ConnectionId<P>
Source§impl<P: PartialEq> PartialEq for ConnectionId<P>
impl<P: PartialEq> PartialEq for ConnectionId<P>
impl<P: Copy> Copy for ConnectionId<P>
impl<P: Eq> Eq for ConnectionId<P>
impl<P> StructuralPartialEq for ConnectionId<P>
Auto Trait Implementations§
impl<P> Freeze for ConnectionId<P>where
P: Freeze,
impl<P> RefUnwindSafe for ConnectionId<P>where
P: RefUnwindSafe,
impl<P> Send for ConnectionId<P>where
P: Send,
impl<P> Sync for ConnectionId<P>where
P: Sync,
impl<P> Unpin for ConnectionId<P>where
P: Unpin,
impl<P> UnwindSafe for ConnectionId<P>where
P: UnwindSafe,
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