#[derive(Debug,Clone)]
pub struct InstanceConfig {
// Exceptional settings
- #[special(special_server, SKL::ServerName)] pub server: ServerName,
+ #[special(special_link, SKL::ServerName)] pub link: LinkName,
pub secret: Secret,
#[special(special_ipif, SKL::Ordinary)] pub ipif: String,
}
impl Display for InstanceConfig {
#[throws(fmt::Error)]
- fn fmt(&self, f: &mut fmt::Formatter) {
- write!(f, "[{} {}]", &self.server, &self.vaddr)?;
- }
+ fn fmt(&self, f: &mut fmt::Formatter) { Display::fmt(&self.link, f)? }
}
impl Display for SectionName {
}
#[throws(AE)]
- pub fn special_server(&self, _key: &'static str) -> ServerName {
- self.link.server.clone()
+ pub fn special_link(&self, _key: &'static str) -> LinkName {
+ self.link.clone()
}
}