mik1e80/dnssd/src/model does not have a README file

    InputError

    pub suberror InputError {
    InvalidInput(String)
    } derive(
    Debug
    )

    impl Show for InputError

    InputError::output

    #deprecated("`InputError::output` is deprecated, use `Show::output` instead.")
    fn InputError::output(self : InputError, logger : &Logger) -> Unit

    InputError::to_repr

    #deprecated("`InputError::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
    fn InputError::to_repr(InputError) ->
    Repr
    automatically derived

    InputError::to_string

    #deprecated("`InputError::to_string` is deprecated, use `Show::to_string` instead.")
    fn InputError::to_string(self : InputError) -> String

    Default implementation for Show::to_string, uses a StringBuilder

    DnsName

    pub struct DnsName {
    // private fields
    } derive(
    Debug
    )

    DNS labels as immutable octets. Never split an instance label on dots.

    DnsName::canonical_key

    fn DnsName::canonical_key(self : DnsName) -> Bytes

    A collision-free wire key with ASCII case folding only.

    DnsName::from_labels

    fn DnsName::from_labels(labels : Array[Bytes]) -> DnsName raise InputError

    DnsName::from_utf8_labels

    fn DnsName::from_utf8_labels(labels : Array[String]) -> DnsName raise InputError

    DnsName::labels

    fn DnsName::labels(self : DnsName) -> Array[Bytes]

    DnsName::parse

    fn DnsName::parse(text : String) -> DnsName raise InputError

    Parse reversible DNS presentation, including escaped octets and UTF-8. Use from_utf8_labels when an instance label already has known boundaries.

    DnsName::same_name

    fn DnsName::same_name(self : DnsName, other : DnsName) -> Bool

    DnsName::to_presentation

    fn DnsName::to_presentation(self : DnsName) -> String

    Absolute, reversible ASCII presentation. UTF-8 remains intact in labels().

    DnsName::to_repr

    #deprecated("`DnsName::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
    fn DnsName::to_repr(DnsName) ->
    Repr
    automatically derived

    DnsName::to_wire

    fn DnsName::to_wire(self : DnsName) -> Bytes

    PacketBudget

    pub struct PacketBudget {
    // private fields
    }

    A monotonic token bucket: limit packets/second with a burst of limit. Zero explicitly disables it. No wall clock or background activity.

    PacketBudget::allow

    fn PacketBudget::allow(self : PacketBudget, now : Int64) -> Bool raise InputError

    PacketBudget::available

    fn PacketBudget::available(self : PacketBudget, now : Int64) -> Bool raise InputError

    PacketBudget::dropped

    fn PacketBudget::dropped(self : PacketBudget) -> Int64

    PacketBudget::new

    fn PacketBudget::new(limit? : Int) -> PacketBudget raise InputError

    PacketSource

    pub(all) struct PacketSource {
    source_ipv4 : UInt
    source_port : Int
    interface_index : Int
    destination_ipv4 : UInt
    ip_ttl : Int?
    } derive(Eq)

    Unauthenticated transport observation supplied by the adapter. Core callers may construct it; it is not proof of origin, ownership or a trusted endpoint.

    PacketSource::equal

    automatically derived

    PacketSource::not_equal

    fn PacketSource::not_equal(x : PacketSource, y : PacketSource) -> Bool
    automatically derived

    TxtRecord

    pub struct TxtRecord {
    // private fields
    } derive(
    Debug
    )

    TxtRecord::entries

    fn TxtRecord::entries(self : TxtRecord) -> Array[Bytes]

    TxtRecord::from_entries

    fn TxtRecord::from_entries(entries : Array[Bytes]) -> TxtRecord raise InputError

    TxtRecord::from_wire

    fn TxtRecord::from_wire(data : Bytes) -> TxtRecord raise InputError

    TxtRecord::lookup

    fn TxtRecord::lookup(self : TxtRecord, key : String) -> TxtValue raise InputError

    First matching key wins (RFC 6763 section 6.4). Values stay binary. Invalid/empty keys are preserved in entries(), ignored during lookup.

    TxtRecord::to_repr

    #deprecated("`TxtRecord::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
    fn TxtRecord::to_repr(TxtRecord) ->
    Repr
    automatically derived

    TxtRecord::to_wire

    fn TxtRecord::to_wire(self : TxtRecord) -> Bytes

    TxtValue

    pub(all) enum TxtValue {
    Missing
    Flag
    Value(Bytes)
    } derive(Eq,
    Debug
    )

    TxtValue::equal

    #deprecated("`TxtValue::equal` is deprecated, use `Eq::equal` instead.")
    fn TxtValue::equal(TxtValue, TxtValue) -> Bool
    automatically derived

    TxtValue::not_equal

    #deprecated("`TxtValue::not_equal` is deprecated, use `Eq::not_equal` instead.")
    fn TxtValue::not_equal(x : TxtValue, y : TxtValue) -> Bool
    automatically derived

    TxtValue::to_repr

    #deprecated("`TxtValue::to_repr` is deprecated, use `@moonbitlang/core/debug.Debug::to_repr` instead.")
    fn TxtValue::to_repr(TxtValue) ->
    Repr
    automatically derived

    address_text

    fn address_text(bytes : Bytes) -> String raise InputError

    bytes_from_hex

    fn bytes_from_hex(text : String) -> Bytes raise InputError

    bytes_hex

    fn bytes_hex(data : Bytes) -> String