pub struct ConnectionAddr<T: Into<SocketAddr> + Copy> {
pub addr: T,
pub last_received_time: Instant,
}
Expand description
UDP address of a connection with the time when last UDP packet was received
Fields§
§addr: T
Address to send UDP packets directly to the peer
last_received_time: Instant
Time when last UDP packet was received
Implementations§
Source§impl<T: Into<SocketAddr> + Copy> ConnectionAddr<T>
impl<T: Into<SocketAddr> + Copy> ConnectionAddr<T>
Trait Implementations§
Source§impl<T: Clone + Into<SocketAddr> + Copy> Clone for ConnectionAddr<T>
impl<T: Clone + Into<SocketAddr> + Copy> Clone for ConnectionAddr<T>
Source§fn clone(&self) -> ConnectionAddr<T>
fn clone(&self) -> ConnectionAddr<T>
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<T: Debug + Into<SocketAddr> + Copy> Debug for ConnectionAddr<T>
impl<T: Debug + Into<SocketAddr> + Copy> Debug for ConnectionAddr<T>
Source§impl<T: PartialEq + Into<SocketAddr> + Copy> PartialEq for ConnectionAddr<T>
impl<T: PartialEq + Into<SocketAddr> + Copy> PartialEq for ConnectionAddr<T>
impl<T: Into<SocketAddr> + Copy> StructuralPartialEq for ConnectionAddr<T>
Auto Trait Implementations§
impl<T> Freeze for ConnectionAddr<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConnectionAddr<T>where
T: RefUnwindSafe,
impl<T> Send for ConnectionAddr<T>where
T: Send,
impl<T> Sync for ConnectionAddr<T>where
T: Sync,
impl<T> Unpin for ConnectionAddr<T>where
T: Unpin,
impl<T> UnwindSafe for ConnectionAddr<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more