pub struct OpenVPNHdr {
pub plen: Option<u16>,
pub opcode: Opcode,
pub key: u8,
}
Expand description
OpenVPN packet header
TCP and UDP differ only by the presence of the plen
field.
Fields§
§plen: Option<u16>
Packet length, TCP only
opcode: Opcode
§key: u8
Trait Implementations§
Source§impl Debug for OpenVPNHdr
impl Debug for OpenVPNHdr
Source§impl PartialEq for OpenVPNHdr
impl PartialEq for OpenVPNHdr
impl StructuralPartialEq for OpenVPNHdr
Auto Trait Implementations§
impl Freeze for OpenVPNHdr
impl RefUnwindSafe for OpenVPNHdr
impl Send for OpenVPNHdr
impl Sync for OpenVPNHdr
impl Unpin for OpenVPNHdr
impl UnwindSafe for OpenVPNHdr
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