/* * Copyright 2026 Flix Authors * * Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE.md file. */pubmod Net.SocketAddrV6 {use Net.Ipv6Addr////// Represents an Ipv6 Socket Address.///pubenumSocketAddrV6withEq {case SocketAddrV6(Ipv6Addr, Int32) }instanceToString[SocketAddrV6] {pubdeftoString(x: SocketAddrV6): String =let SocketAddrV6.SocketAddrV6(ip, port) = x;"[${ip}]:${port}" }instanceFormattable[SocketAddrV6] {pubdefformat(x: SocketAddrV6): RichString = RichString.fromString(ToString.toString(x)) }}