pub trait RemoteGatewayPort:
Send
+ Sync
+ Debug {
// Required methods
fn mcp_allowed(&self) -> bool;
fn note_tunnelled_request(&self, peer: Option<&str>, device: Option<&str>);
}Expand description
What the proxy may ask the tunnel’s owner.
Required Methods§
Sourcefn mcp_allowed(&self) -> bool
fn mcp_allowed(&self) -> bool
Whether requests arriving through the tunnel may reach /mcp.
Sourcefn note_tunnelled_request(&self, peer: Option<&str>, device: Option<&str>)
fn note_tunnelled_request(&self, peer: Option<&str>, device: Option<&str>)
A request marked as tunnelled reached the proxy. Counted, and the peer remembered, for the status surface; never the request itself.
device is the named token the edge says admitted it, when it named
one. Absent means a client that reached the proxy directly forged the
markers, since the edge names a device on everything it forwards,
which is why nothing is ever granted on the strength of it.