Struct libp2p_yamux::YamuxConfig[][src]

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

The yamux configuration.

Implementations

Creates a new YamuxConfig in client mode, regardless of whether it will be used for an inbound or outbound upgrade.

Creates a new YamuxConfig in server mode, regardless of whether it will be used for an inbound or outbound upgrade.

Sets the size (in bytes) of the receive window per substream.

Sets the maximum size (in bytes) of the receive buffer per substream.

Sets the maximum number of concurrent substreams.

Sets the window update mode that determines when the remote is given new credit for sending more data.

Converts the config into a YamuxLocalConfig for use with upgrades of I/O streams that are Send.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Output after the upgrade has been successfully negotiated and the handshake performed.

Possible error during the handshake.

Future that performs the handshake with the remote.

After we have determined that the remote supports one of the protocols we support, this method is called to start the handshake. Read more

Output after the upgrade has been successfully negotiated and the handshake performed.

Possible error during the handshake.

Future that performs the handshake with the remote.

After we have determined that the remote supports one of the protocols we support, this method is called to start the handshake. Read more

Opaque type representing a negotiable protocol.

Iterator returned by protocol_info.

Returns the list of protocols that are supported. Used during the negotiation process.

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.

Returns a new object that wraps around Self and applies a closure to the Output.

Returns a new object that wraps around Self and applies a closure to the Error.

Performs the conversion.

Returns a new object that wraps around Self and applies a closure to the Output.

Returns a new object that wraps around Self and applies a closure to the Error.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.