Struct win_etw_provider::SocketAddrV4
source · #[repr(C)]pub struct SocketAddrV4 {
pub family: u16,
pub port: [u8; 2],
pub address: [u8; 4],
pub zero: [u8; 8],
}
Expand description
This has the same in-memory representation as the Win32 [SOCKADDR_IN]
structure.
Fields§
§family: u16
Address family identifier.
port: [u8; 2]
Port identifier, stored in big-endian form.
address: [u8; 4]
IPv4 address, stored in big-endian form.
zero: [u8; 8]
Zero padding.
Trait Implementations§
source§impl AsBytes for SocketAddrV4
impl AsBytes for SocketAddrV4
source§impl Clone for SocketAddrV4
impl Clone for SocketAddrV4
source§fn clone(&self) -> SocketAddrV4
fn clone(&self) -> SocketAddrV4
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> From<&'a SocketAddrV4> for EventDataDescriptor<'a>
impl<'a> From<&'a SocketAddrV4> for EventDataDescriptor<'a>
source§fn from(value: &'a SocketAddrV4) -> EventDataDescriptor<'a>
fn from(value: &'a SocketAddrV4) -> EventDataDescriptor<'a>
Converts to this type from the input type.
source§impl From<&SocketAddrV4> for SocketAddrV4
impl From<&SocketAddrV4> for SocketAddrV4
source§fn from(value: &SocketAddrV4) -> Self
fn from(value: &SocketAddrV4) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SocketAddrV4
impl Send for SocketAddrV4
impl Sync for SocketAddrV4
impl Unpin for SocketAddrV4
impl UnwindSafe for SocketAddrV4
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