Struct dhcp_client_core::deps::DatagramInfo
source · pub struct DatagramInfo<T> {
pub length: usize,
pub address: T,
}
Expand description
Contains information about a datagram received on a socket.
Fields§
§length: usize
The length in bytes of the datagram received on the socket.
address: T
The address associated with the datagram received on the socket (usually, the address from which the datagram was received).
Trait Implementations§
source§impl<T: Clone> Clone for DatagramInfo<T>
impl<T: Clone> Clone for DatagramInfo<T>
source§fn clone(&self) -> DatagramInfo<T>
fn clone(&self) -> DatagramInfo<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> Debug for DatagramInfo<T>
impl<T: Debug> Debug for DatagramInfo<T>
source§impl<T: PartialEq> PartialEq for DatagramInfo<T>
impl<T: PartialEq> PartialEq for DatagramInfo<T>
source§fn eq(&self, other: &DatagramInfo<T>) -> bool
fn eq(&self, other: &DatagramInfo<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for DatagramInfo<T>
impl<T> StructuralPartialEq for DatagramInfo<T>
Auto Trait Implementations§
impl<T> Freeze for DatagramInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for DatagramInfo<T>where
T: RefUnwindSafe,
impl<T> Send for DatagramInfo<T>where
T: Send,
impl<T> Sync for DatagramInfo<T>where
T: Sync,
impl<T> Unpin for DatagramInfo<T>where
T: Unpin,
impl<T> UnwindSafe for DatagramInfo<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