Function construct

Source
fn construct<L, FC, BC, FR, BR>(
    keygen: impl KeyGenerator,
    role: HandshakeRole,
) -> Result<BoxedClientLayer>
where L: CryptInit + ClientLayer<FC, BC> + RelayLayer<FR, BR>, FC: OutboundClientLayer + Send + 'static, BC: InboundClientLayer + Send + 'static, FR: OutboundRelayLayer + Send + 'static, BR: InboundRelayLayer + Send + 'static,
Available on crate feature hs-common only.
Expand description

Helper: Construct a BoxedClientLayer for a layer type L whose inbound and outbound cryptographic states are the same type.