pub struct ReceivedPacket {
pub data: Vec<u8>,
pub addr: SocketAddr,
pub recv_time: NtpTimestamp,
}Expand description
A received UDP packet with its source address and receive timestamp.
Fields§
§data: Vec<u8>§addr: SocketAddr§recv_time: NtpTimestampAuto Trait Implementations§
impl Freeze for ReceivedPacket
impl RefUnwindSafe for ReceivedPacket
impl Send for ReceivedPacket
impl Sync for ReceivedPacket
impl Unpin for ReceivedPacket
impl UnsafeUnpin for ReceivedPacket
impl UnwindSafe for ReceivedPacket
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