Struct hypercore_protocol::ProtocolBuilder[][src]

pub struct ProtocolBuilder(_);
Expand description

Build a Protocol instance with options.

Implementations

Create a protocol builder.

Default options for an initiating endpoint.

Default options for a responding endpoint.

Set encrypted option.

Set handshake option.

Create the protocol from a stream that implements AsyncRead + AsyncWrite + Clone.

Create the protocol from an AsyncRead reader and AsyncWrite writer.

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.