pub struct QueuedDatagram {
pub delivery_time: Instant,
pub payload: Vec<u8>,
pub src: SocketAddr,
pub dst: SocketAddr,
}Expand description
Represents a datagram that has been queued for simulated delivery.
Fields§
§delivery_time: InstantThe instant at which this datagram should be delivered.
payload: Vec<u8>The raw payload of the datagram.
src: SocketAddrThe source address of the datagram.
dst: SocketAddrThe destination address of the datagram.
Trait Implementations§
Source§impl Clone for QueuedDatagram
impl Clone for QueuedDatagram
Source§fn clone(&self) -> QueuedDatagram
fn clone(&self) -> QueuedDatagram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueuedDatagram
impl RefUnwindSafe for QueuedDatagram
impl Send for QueuedDatagram
impl Sync for QueuedDatagram
impl Unpin for QueuedDatagram
impl UnsafeUnpin for QueuedDatagram
impl UnwindSafe for QueuedDatagram
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