Struct de_net::record::DeliveryRecord
source · pub(crate) struct DeliveryRecord {
time: Instant,
header: PackageHeader,
}
Fields§
§time: Instant
§header: PackageHeader
Implementations§
source§impl DeliveryRecord
impl DeliveryRecord
pub(crate) fn now(header: PackageHeader) -> Self
sourcepub(crate) fn header(&self) -> PackageHeader
pub(crate) fn header(&self) -> PackageHeader
Package header.
Trait Implementations§
source§impl Clone for DeliveryRecord
impl Clone for DeliveryRecord
source§fn clone(&self) -> DeliveryRecord
fn clone(&self) -> DeliveryRecord
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 Debug for DeliveryRecord
impl Debug for DeliveryRecord
source§impl PartialEq for DeliveryRecord
impl PartialEq for DeliveryRecord
source§fn eq(&self, other: &DeliveryRecord) -> bool
fn eq(&self, other: &DeliveryRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeliveryRecord
Auto Trait Implementations§
impl Freeze for DeliveryRecord
impl RefUnwindSafe for DeliveryRecord
impl Send for DeliveryRecord
impl Sync for DeliveryRecord
impl Unpin for DeliveryRecord
impl UnwindSafe for DeliveryRecord
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