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

    InputError::to_string

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

    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

    DnsName::to_wire

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

    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

    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

    TxtValue::not_equal

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

    TxtValue::to_repr

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

    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