add notes around names that are baked into libstd

This commit is contained in:
bunnie 2022-03-22 22:30:43 +08:00
parent 2cc8a1b24a
commit b4c98528e8
3 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#[allow(dead_code)]
// note: this name cannot be changed, because it is baked into `libstd`
pub(crate) const SERVER_NAME_DNS: &str = "_DNS Resolver Middleware_";
use net::NetIpAddr;
use rkyv::{Archive, Deserialize, Serialize};

View file

@ -29,7 +29,7 @@ pub struct DateTime {
pub years: u8,
pub weekday: Weekday,
}
// note: this name cannot be changed, because it is baked into `libstd`
pub(crate) const SERVER_NAME_RTC: &str = "_Real time clock application server_";
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]

View file

@ -22,6 +22,7 @@ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
// republish this so we can decode the icmpv4 error codes
pub use smoltcp::wire::Icmpv4DstUnreachable;
// note: this name cannot be changed, because it is baked into `libstd`
pub(crate) const SERVER_NAME_NET: &str = "_Middleware Network Server_";
#[allow(dead_code)]
pub const AP_DICT_NAME: &'static str = "wlan.networks";