Instance Methodheckj.formic 0.3.0Formic
encode(to:)
Encodes an IPv4 address to a decoder.
func encode(to encoder: Encoder) throws
Parameters
- encoder
the encoder to write data to.
Encodes an IPv4 address to a decoder.
func encode(to encoder: Encoder) throws
s6Formic10RemoteHostV11IPv4AddressV6encode2toys7Encoder_p_tKF
What are these?UUX
the encoder to write data to.
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct IPv4Address
An IPv4 address.
struct RemoteHost
A local or remote host.
protocol Encoder
A type that can encode values into a native format for external representation.
init?(_ stringRep: String)
init(_ octets: (UInt8, UInt8, UInt8, UInt8))
init(from decoder: Decoder) throws
Creates an IPv4 address from a decoder.
static let localhost: RemoteHost.IPv4Address
var description: String { get }
static func == (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value that indicates whether two IPv4 addresses are equal.
func hash(into hasher: inout Hasher)
Calculates the hash value for the IPv4 address.