mik1e80/dnssd/src/engine does not have a README file
pub suberror EngineError {
Closed
InvalidServiceType
ResourceLimit(String)
UnknownSubscription
RateLimited
InvalidTime
}impl Show for EngineError#deprecated("`EngineError::output` is deprecated, use `Show::output` instead.")
fn EngineError::output(self : EngineError, logger : &Logger) -> Unit#deprecated("`EngineError::to_string` is deprecated, use `Show::to_string` instead.")
fn EngineError::to_string(self : EngineError) -> Stringpub struct EndpointCandidate {
scope : String
target : DnsName
port : Int
address : Bytes
requires_ipv6_zone : Bool
}pub struct Engine {
// private fields
}fn Engine::ingest(self : Engine, packet : Bytes, scope : String, now : Int64, source? : PacketSource?) -> Unit raisefn Engine::ingest_message(self : Engine, message : Message, scope : String, now : Int64, source? : PacketSource?) -> Unit raisepub struct EngineStats {
cached_records : Int
services : Int
subscriptions : Int
queued_events : Int
query_jobs : Int
queued_questions : Int
queued_datagrams : Int
dropped_events : Int64
rate_dropped : Int64
deferred_queries : Int
}pub(all) enum Event {
Seen(ServiceSnapshot)
Resolved(ServiceSnapshot)
Updated(ServiceSnapshot, String)
Unavailable(ServiceSnapshot, String)
Removed(ServiceSnapshot, String)
Diagnostic(String, String)
ResolveTimedOut(Int)
}pub struct RecordObservation {
owner : DnsName
rr_type : Int
received_at : Int64
source : PacketSource
}pub struct ServiceSnapshot {
scope : String
service_type : DnsName
instance : DnsName
target : DnsName?
port : Int?
srv_candidates : Array[SrvCandidate]
txt : TxtRecord?
addresses : Array[Bytes]
missing : Array[String]
complete : Bool
remaining_ttl_ms : Int64
observations : Array[RecordObservation]
observations_truncated : Bool
}fn ServiceSnapshot::endpoints(self : ServiceSnapshot, accept : (Bytes, Int) -> Bool, ipv4_only? : Bool) -> Array[EndpointCandidate]Install
Download zipMoonDiscover: DNS-SD browsing and resolution with a portable protocol core