Struct kuska_handshake::BoxStreamSend[][src]

pub struct BoxStreamSend { /* fields omitted */ }
Expand description

The transport agnostic boxstream sending side.

Implementations

Create a new BoxStreamSend from the key_nonce.

Encrypt a single boxstream message by taking bytes from buf and encrypting them into enc. Returns the number of bytes read from buf and the number of bytes written into enc.

Encrypt a goodbye message into enc. Returns the number of bytes written into enc.

Returns whether the goodbye message has been sent or not.

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.