pub enum PT_SOCKADDR<'a> {
Unix(&'a Path),
V4((Ipv4Addr, Port)),
V6((Ipv6Addr, Port)),
Other(u8, &'a [u8]),
}
Expand description
A socket address
Variants§
Unix(&'a Path)
Unix sockets
V4((Ipv4Addr, Port))
IPv4 sockets
V6((Ipv6Addr, Port))
IPv6 socket
Other(u8, &'a [u8])
any other address family is represented as the number (PPM_AF_*
constant) and the raw data
Trait Implementations§
source§impl<'a> FromBytes<'a> for SockAddr<'a>
impl<'a> FromBytes<'a> for SockAddr<'a>
source§fn from_bytes(buf: &mut &'a [u8]) -> FromBytesResult<Self>
fn from_bytes(buf: &mut &'a [u8]) -> FromBytesResult<Self>
Read the binary representation of a field and return the parsed representation Read more
source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
Read the binary representation of a field from a buffer that may or may not exist Read more
Auto Trait Implementations§
impl<'a> Freeze for SockAddr<'a>
impl<'a> RefUnwindSafe for SockAddr<'a>
impl<'a> Send for SockAddr<'a>
impl<'a> Sync for SockAddr<'a>
impl<'a> Unpin for SockAddr<'a>
impl<'a> UnwindSafe for SockAddr<'a>
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