pub struct SendInfo {
pub from: SocketAddr,
pub to: SocketAddr,
pub at: Instant,
}
Expand description
Ancillary information about outgoing packets.
Fields§
§from: SocketAddr
The local address the packet should be sent from.
to: SocketAddr
The remote address the packet should be sent to.
at: Instant
The time to send the packet out.
See Pacing for more details.
Trait Implementations§
source§impl PartialEq<SendInfo> for SendInfo
impl PartialEq<SendInfo> for SendInfo
impl Copy for SendInfo
impl Eq for SendInfo
impl StructuralEq for SendInfo
impl StructuralPartialEq for SendInfo
Auto Trait Implementations§
impl RefUnwindSafe for SendInfo
impl Send for SendInfo
impl Sync for SendInfo
impl Unpin for SendInfo
impl UnwindSafe for SendInfo
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.