Lines Matching defs:fmt
39 use std::{fmt, mem, net, ptr, slice};
553 impl fmt::Display for InetAddr {
554 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
614 impl fmt::Display for IpAddr {
615 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
617 IpAddr::V4(ref v4) => v4.fmt(f),
618 IpAddr::V6(ref v6) => v6.fmt(f)
674 impl fmt::Display for Ipv4Addr {
675 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
677 write!(fmt, "{}.{}.{}.{}", octets[0], octets[1], octets[2], octets[3])
738 impl fmt::Display for Ipv6Addr {
739 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
740 self.to_std().fmt(fmt)
1061 fn fmt_abstract(abs: &[u8], f: &mut fmt::Formatter) -> fmt::Result {
1062 use fmt::Write;
1065 use fmt::Display;
1066 char::from(b).escape_default().fmt(f)?;
1072 impl fmt::Display for UnixAddr {
1073 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1075 UnixAddrKind::Pathname(path) => path.display().fmt(f),
1314 impl fmt::Display for SockaddrIn {
1315 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1433 impl fmt::Display for SockaddrIn6 {
1434 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1443 std.fmt(f)
1796 impl fmt::Debug for SockaddrStorage {
1797 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1806 impl fmt::Display for SockaddrStorage {
1807 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1811 libc::AF_ALG => self.alg.fmt(f),
1813 libc::AF_INET => self.sin.fmt(f),
1815 libc::AF_INET6 => self.sin6.fmt(f),
1826 libc::AF_LINK => self.dl.fmt(f),
1828 libc::AF_NETLINK => self.nl.fmt(f),
1835 libc::AF_PACKET => self.dl.fmt(f),
1838 libc::AF_SYSTEM => self.sctl.fmt(f),
1839 libc::AF_UNIX => self.su.fmt(f),
1841 libc::AF_VSOCK => self.vsock.fmt(f),
1842 _ => "<Address family unspecified>".fmt(f),
2282 impl fmt::Display for SockAddr {
2283 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2286 SockAddr::Inet(ref inet) => inet.fmt(f),
2287 SockAddr::Unix(ref unix) => unix.fmt(f),
2289 SockAddr::Netlink(ref nl) => nl.fmt(f),
2291 SockAddr::Alg(ref nl) => nl.fmt(f),
2296 SockAddr::SysControl(ref sc) => sc.fmt(f),
2309 SockAddr::Link(ref ether_addr) => ether_addr.fmt(f),
2311 SockAddr::Vsock(ref svm) => svm.fmt(f),
2338 use std::{fmt, mem};
2399 impl fmt::Display for NetlinkAddr {
2400 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2413 use std::{fmt, mem, str};
2512 impl fmt::Display for AlgAddr {
2513 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2523 impl fmt::Debug for AlgAddr {
2524 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2525 fmt::Display::fmt(self, f)
2536 use std::{fmt, mem, ptr};
2631 impl fmt::Display for SysControlAddr {
2632 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2633 fmt::Debug::fmt(self, f)
2644 use super::{fmt, mem, private, ptr, SockaddrLike};
2691 impl fmt::Display for LinkAddr {
2692 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2747 use super::{fmt, mem, private, ptr, SockaddrLike};
2815 impl fmt::Display for LinkAddr {
2816 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2864 use std::{fmt, mem};
2945 impl fmt::Display for VsockAddr {
2946 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2951 impl fmt::Debug for VsockAddr {
2952 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2953 fmt::Display::fmt(self, f)