pub struct Packet {
pub subscription_id: SubscriptionId,
pub source: SocketAddr,
pub group: IpAddr,
pub dst_port: u16,
pub payload: Bytes,
}Expand description
A received packet together with the metadata needed by the receiver core.
Fields§
§subscription_id: SubscriptionIdThe subscription through which this packet was received.
source: SocketAddrThe remote sender’s source address and source port.
group: IpAddrThe destination multicast group address.
dst_port: u16The destination UDP port on which the packet was received.
payload: BytesThe raw UDP payload bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
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