pub enum PT_SOCKADDR {
Unix(PathBuf),
V4((Ipv4Addr, Port)),
V6((Ipv6Addr, Port)),
Other(u8, Vec<u8>),
}
Expand description
A socket address (owned)
Variants§
Unix(PathBuf)
Unix sockets
V4((Ipv4Addr, Port))
IPv4 sockets
V6((Ipv6Addr, Port))
IPv6 socket
Other(u8, Vec<u8>)
any other address family is represented as the number (PPM_AF_*
constant) and the raw data
Trait Implementations§
source§impl Debug for OwnedSockAddr
impl Debug for OwnedSockAddr
source§impl<'de> Deserialize<'de> for OwnedSockAddr
impl<'de> Deserialize<'de> for OwnedSockAddr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OwnedSockAddr
impl RefUnwindSafe for OwnedSockAddr
impl Send for OwnedSockAddr
impl Sync for OwnedSockAddr
impl Unpin for OwnedSockAddr
impl UnwindSafe for OwnedSockAddr
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
source§impl<T> ToBytes for Twhere
T: Borrow + 'static,
<T as Borrow>::Borrowed<'a>: for<'a> ToBytes,
impl<T> ToBytes for Twhere
T: Borrow + 'static,
<T as Borrow>::Borrowed<'a>: for<'a> ToBytes,
source§fn binary_size(&self) -> usize
fn binary_size(&self) -> usize
Return the number of bytes needed to store the field
source§fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Write the binary representation to
writer
source§fn default_repr() -> impl ToBytes
fn default_repr() -> impl ToBytes
Return the default representation for the field type Read more