#[repr(C, packed(1))]pub struct ProxyHdrV2 {
pub signature: [u8; 12],
pub ver_cmd: u8,
pub fam: u8,
pub len: u16,
pub address: [u8; 0],
}Fields§
§signature: [u8; 12][HEADER_MAGIC] const
ver_cmd: u8protocol version and command
fam: u8protocol family and address
len: u16number of following bytes part of the header
address: [u8; 0]17th byte, addresses in network byte order.
Implementations§
Source§impl ProxyHdrV2
impl ProxyHdrV2
pub const VERSION_MASK: u8 = 240u8
pub const COMMAND_MASK: u8 = 15u8
pub const TRANSPT_MASK: u8 = 15u8
pub const ADDRESS_MASK: u8 = 240u8
pub const VERSION_RAW: u8 = 32u8
pub const HEADER_LEN: usize = 16usize
pub const HEADER_ADDR_LEN: usize = 232usize
Auto Trait Implementations§
impl Freeze for ProxyHdrV2
impl RefUnwindSafe for ProxyHdrV2
impl Send for ProxyHdrV2
impl Sync for ProxyHdrV2
impl Unpin for ProxyHdrV2
impl UnwindSafe for ProxyHdrV2
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