Trait ReqToConnID
pub trait ReqToConnID<Input>:
Sized
+ Clone
+ Send
+ Sync
+ 'staticwhere
Input: ExtensionsRef,{
type ID: ConnID;
// Required method
fn id(
&self,
input: &Input,
) -> Result<Self::ID, Box<dyn Error + Sync + Send>>;
}Available on crate feature
net only.Expand description
ReqToConnID is used to convert a Input to a connection ID. These IDs
are not unique and multiple connections can have the same ID. IDs are used
to filter which connections can be used for a specific input in a way that
is independent of what an input is.
Identifiers serving partitioned input must include PoolPartition (or
equivalent isolation) so application requirements cannot select a connection
created outside that partition.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".