#[repr(u8)]pub enum OpenvpnOpcode {
ControlHardResetClientV2 = 7,
ControlHardResetServerV2 = 8,
ControlV1 = 4,
AckV1 = 5,
DataV1 = 6,
DataV2 = 9,
}Expand description
OpenVPN packet opcodes (5 bits, high nibble of first byte)
Variants§
ControlHardResetClientV2 = 7
Control channel: hard reset from client (v2)
ControlHardResetServerV2 = 8
Control channel: hard reset from server (v2)
ControlV1 = 4
Control channel: reliable data
AckV1 = 5
Control channel: acknowledgement
DataV1 = 6
Data channel: v1 (no peer-id)
DataV2 = 9
Data channel: v2 (with peer-id)
Implementations§
Source§impl OpenvpnOpcode
impl OpenvpnOpcode
Trait Implementations§
Source§impl Clone for OpenvpnOpcode
impl Clone for OpenvpnOpcode
Source§fn clone(&self) -> OpenvpnOpcode
fn clone(&self) -> OpenvpnOpcode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenvpnOpcode
impl Debug for OpenvpnOpcode
Source§impl PartialEq for OpenvpnOpcode
impl PartialEq for OpenvpnOpcode
impl Copy for OpenvpnOpcode
impl Eq for OpenvpnOpcode
impl StructuralPartialEq for OpenvpnOpcode
Auto Trait Implementations§
impl Freeze for OpenvpnOpcode
impl RefUnwindSafe for OpenvpnOpcode
impl Send for OpenvpnOpcode
impl Sync for OpenvpnOpcode
impl Unpin for OpenvpnOpcode
impl UnwindSafe for OpenvpnOpcode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)