pub struct Packet { /* private fields */ }
Represents a wintun packet
Returns the bytes this packet holds as &mut. The lifetime of the bytes is tied to the lifetime of this packet.
Returns an immutable reference to the bytes this packet holds. The lifetime of the bytes is tied to the lifetime of this packet.
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U