Struct win_etw_provider::SocketAddrV6
source · #[repr(C)]pub struct SocketAddrV6 {
pub family: u16,
pub port: [u8; 2],
pub flow_info: [u8; 4],
pub address: [u8; 16],
pub scope_id: [u8; 4],
}
Expand description
See [SOCKADDR_IN6_LH](https://docs.microsoft.com/en-us/windows/win32/api/ws2ipdef/ns-ws2ipdef-sockaddr_in6_lh)
.
Fields§
§family: u16
Address family identifier.
port: [u8; 2]
Port identifier, stored in big-endian form.
flow_info: [u8; 4]
IPv6 flow info.
address: [u8; 16]
IPv6 address.
scope_id: [u8; 4]
IPv6 scope.
Trait Implementations§
source§impl AsBytes for SocketAddrV6
impl AsBytes for SocketAddrV6
source§impl Clone for SocketAddrV6
impl Clone for SocketAddrV6
source§fn clone(&self) -> SocketAddrV6
fn clone(&self) -> SocketAddrV6
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 SocketAddrV6> for EventDataDescriptor<'a>
impl<'a> From<&'a SocketAddrV6> for EventDataDescriptor<'a>
source§fn from(value: &'a SocketAddrV6) -> EventDataDescriptor<'a>
fn from(value: &'a SocketAddrV6) -> EventDataDescriptor<'a>
Converts to this type from the input type.
source§impl From<&SocketAddrV6> for SocketAddrV6
impl From<&SocketAddrV6> for SocketAddrV6
source§fn from(value: &SocketAddrV6) -> Self
fn from(value: &SocketAddrV6) -> Self
Converts to this type from the input type.
source§impl FromBytes for SocketAddrV6
impl FromBytes for SocketAddrV6
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§impl FromZeroes for SocketAddrV6
impl FromZeroes for SocketAddrV6
Auto Trait Implementations§
impl RefUnwindSafe for SocketAddrV6
impl Send for SocketAddrV6
impl Sync for SocketAddrV6
impl Unpin for SocketAddrV6
impl UnwindSafe for SocketAddrV6
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