(&self, f: &mut std::fmt::Formatter<'_>)
| 79 | |
| 80 | impl std::fmt::Display for PolicyMergeWarning { |
| 81 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 82 | match self { |
| 83 | Self::ExistingProtocolRetained { |
| 84 | host, |
| 85 | port, |
| 86 | existing, |
| 87 | incoming, |
| 88 | } => write!( |
| 89 | f, |
| 90 | "endpoint {host}:{port} keeps existing protocol '{existing}' and ignores incoming '{incoming}'" |
| 91 | ), |
| 92 | Self::ExistingEnforcementRetained { |
| 93 | host, |
| 94 | port, |
| 95 | existing, |
| 96 | incoming, |
| 97 | } => write!( |
| 98 | f, |
| 99 | "endpoint {host}:{port} keeps existing enforcement '{existing}' and ignores incoming '{incoming}'" |
| 100 | ), |
| 101 | Self::ExistingTlsRetained { |
| 102 | host, |
| 103 | port, |
| 104 | existing, |
| 105 | incoming, |
| 106 | } => write!( |
| 107 | f, |
| 108 | "endpoint {host}:{port} keeps existing tls mode '{existing}' and ignores incoming '{incoming}'" |
| 109 | ), |
| 110 | Self::ExistingAccessRetained { |
| 111 | host, |
| 112 | port, |
| 113 | existing, |
| 114 | incoming, |
| 115 | } => write!( |
| 116 | f, |
| 117 | "endpoint {host}:{port} keeps existing access preset '{existing}' and ignores incoming '{incoming}'" |
| 118 | ), |
| 119 | Self::ExpandedAccessPreset { host, port, access } => write!( |
| 120 | f, |
| 121 | "expanded access preset '{access}' to explicit rules for endpoint {host}:{port}" |
| 122 | ), |
| 123 | Self::IgnoredIncomingAccessBecauseRulesExist { |
| 124 | host, |
| 125 | port, |
| 126 | incoming, |
| 127 | } => write!( |
| 128 | f, |
| 129 | "endpoint {host}:{port} already uses explicit rules; incoming access preset '{incoming}' was ignored" |
| 130 | ), |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | #[derive(Debug, Clone, PartialEq, Eq)] |
nothing calls this directly
no outgoing calls
no test coverage detected