pub struct TransportReceiveHalf<H> where
    H: Hash
{ /* private fields */ }

Implementations

unique identifier of the noise session

get the remote’s public identity

get the number of message received from the remote peer

this function will be a little tainted by the handshake state it also account for the number of times either encrypt or decrypt has been used during the handshake. This is because during the handshake the exchange is symmetrical while in the transport era the exchanges are asymmetrical.

receive message from the remote peer

The output can have 16 bytes less than the input. This is because the MAC is appended in the input message so we can verify the message has not been tempered with.

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.

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.