fn from_source(info: &RpcRequestInfo, expected: Source, request: &str) -> boolExpand description
Determines if a request came from the expected source.
A rejection is logged with the request’s
[RpcRequest::NAME], the source it came from, and the source that was expected.