pub struct SendWrapper<T>(pub T);
Expand description

Wraps around a type that implements OutboundUpgradeSend, InboundUpgradeSend, or both, and implements OutboundUpgrade and/or InboundUpgrade.

Note: This struct is mostly an implementation detail of the library and normally doesn’t need to be used directly.

Tuple Fields

0: T

Trait Implementations

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 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.