(method: &str)
| 59 | /// Find the auth metadata for `method`, if any. |
| 60 | #[must_use] |
| 61 | pub fn lookup(method: &str) -> Option<&'static MethodAuth> { |
| 62 | for table in SERVICES { |
| 63 | if let Some(entry) = table.iter().find(|m| m.path == method) { |
| 64 | return Some(entry); |
| 65 | } |
| 66 | } |
| 67 | None |
| 68 | } |
| 69 | |
| 70 | /// All registered RPC paths across every service. Used by tests. |
| 71 | #[cfg(test)] |
no outgoing calls