pub struct Accepting<I, O, RNG, K = SecretKey> { /* private fields */ }
Expand description

accept incoming handshake

upon opening an ASMTP session with our node, the initiator will send the initial handshake to authenticate themselves and the responser is required to respond accordingly.

This object offers the necessary tooling to identify the initiator so it is possible to deny the connection early enough (see Accepting::accept)

Implementations

perform the initial handshake with the peer

Upon receiving the initial handshake message, the function check_id will verify the public key of the user. For example the user can maintain a list of unwelcome public keys.

If the peer is accepted and is using a supported version of the protocol then the functions replies the response handshake.

Errors

This function may fail for IO operations as well as for processing the noise handshake.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more