Struct soketto::connection::Builder[][src]

pub struct Builder<T> { /* fields omitted */ }
Expand description

A connection builder.

Allows configuring certain parameters and extensions before creating the Sender/Receiver pair that represents the connection.

Implementations

Create a new Builder from the given async I/O resource and mode.

Note: Use this type only after a successful handshake. You can either use this crate’s handshake functionality or perform the handshake by some other means.

Set a custom buffer to use.

Add extensions to use with this connection.

Only enabled extensions will be considered.

Set the maximum size of a complete message.

Message fragments will be buffered and concatenated up to this value, i.e. the sum of all message frames payload lengths will not be greater than this maximum. However, extensions may increase the total message size further, e.g. by decompressing the payload data.

Set the maximum size of a single websocket frame payload.

Create a configured Sender/Receiver pair.

Trait Implementations

Formats the value using the given formatter. Read more

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.

Should always be Self

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.