#[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 = 0xF0
pub const COMMAND_MASK: u8 = 0x0F
pub const TRANSPT_MASK: u8 = 0x0F
pub const ADDRESS_MASK: u8 = 0xF0
pub const VERSION_RAW: u8 = 0x20
pub const HEADER_LEN: usize
pub const HEADER_ADDR_LEN: usize
Auto Trait Implementations§
impl Freeze for ProxyHdrV2
impl RefUnwindSafe for ProxyHdrV2
impl Send for ProxyHdrV2
impl Sync for ProxyHdrV2
impl Unpin for ProxyHdrV2
impl UnsafeUnpin 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