pub struct Receive<'a> {
pub proto: Protocol,
pub source: SocketAddr,
pub destination: SocketAddr,
pub contents: DatagramRecv<'a>,
}
Expand description
Received incoming data.
Fields§
§proto: Protocol
The protocol the socket this received data originated from is using.
source: SocketAddr
The socket this received data originated from.
destination: SocketAddr
The destination ip of the datagram.
contents: DatagramRecv<'a>
Parsed contents of the datagram.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Receive<'a>
impl<'a> RefUnwindSafe for Receive<'a>
impl<'a> Send for Receive<'a>
impl<'a> Sync for Receive<'a>
impl<'a> Unpin for Receive<'a>
impl<'a> UnwindSafe for Receive<'a>
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