MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / from

Method from

tcp/src/dns.rs:64–68  ·  view source on GitHub ↗
(datagram: &[u8])

Source from the content-addressed store, hash-verified

62
63impl Message {
64 fn from(datagram: &[u8]) -> Self {
65 Self {
66 datagram: Vec::from(datagram),
67 }
68 }
69
70 fn query(qname: &str, qtype: QueryType, qclass: QueryClass) -> Self {
71 let mut datagram = Vec::new();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected