pub trait RemoteAddr:
Clone
+ Eq
+ Hash {
// Required method
fn same_host(&self, other: &Self) -> bool;
}Expand description
An address that can key a session in a SoeMultiplexer.
The same_host method lets the multiplexer honour the
reference’s port-remap security rule (only the port of an established session may
change, never the host) without hard-coding a concrete address type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".